Skip to content

Commit 1ccb50a

Browse files
committed
Allow fom units to be expanded by regex group
1 parent 3c7a864 commit 1ccb50a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/ramble/ramble/application.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1705,9 +1705,10 @@ def format_context(context_match, context_format):
17051705
if context not in fom_values:
17061706
fom_values[context] = {}
17071707
fom_val = fom_match.group(fom_conf["group"])
1708+
fom_unit = self.expander.expand_var(fom_conf["units"], extra_vars=fom_vars)
17081709
fom_values[context][fom_name] = {
17091710
"value": fom_val,
1710-
"units": fom_conf["units"],
1711+
"units": fom_unit,
17111712
"origin": fom_conf["origin"],
17121713
"origin_type": fom_conf["origin_type"],
17131714
"fom_type": fom_conf["fom_type"],

0 commit comments

Comments
 (0)