Skip to content

Commit 2322bb6

Browse files
committed
Add hack to only expand defaults for Annual results
1 parent 7849353 commit 2322bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/otoole/input.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def write(
273273
if entity_type != "set":
274274
default_value = default_values[name]
275275
# This should be moved inside the loop and performed once for each parameter
276-
if self.write_defaults:
276+
if self.write_defaults and "Annual" in name:
277277
try:
278278
logger.info(f"Expanding {name} with default values")
279279
df_expand = self._expand_dataframe(

0 commit comments

Comments
 (0)