Skip to content

Commit

Permalink
Add hack to only expand defaults for Annual results
Browse files Browse the repository at this point in the history
  • Loading branch information
willu47 committed Feb 7, 2024
1 parent 7849353 commit 2322bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/otoole/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ def write(
if entity_type != "set":
default_value = default_values[name]
# This should be moved inside the loop and performed once for each parameter
if self.write_defaults:
if self.write_defaults and "Annual" in name:
try:
logger.info(f"Expanding {name} with default values")
df_expand = self._expand_dataframe(
Expand Down

0 comments on commit 2322bb6

Please sign in to comment.