Skip to content

Commit

Permalink
Allow fom units to be expanded by regex group
Browse files Browse the repository at this point in the history
  • Loading branch information
rfbgo committed Dec 5, 2024
1 parent 3c7a864 commit 6580d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ramble/ramble/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -1705,9 +1705,10 @@ def format_context(context_match, context_format):
if context not in fom_values:
fom_values[context] = {}
fom_val = fom_match.group(fom_conf["group"])
fom_unit = self.expander.expand_var(fom_conf["units"], extra_vars=fom_vars)
fom_values[context][fom_name] = {
"value": fom_val,
"units": fom_conf["units"],
"units": fom_unit,
"origin": fom_conf["origin"],
"origin_type": fom_conf["origin_type"],
"fom_type": fom_conf["fom_type"],
Expand Down

0 comments on commit 6580d86

Please sign in to comment.