Skip to content

Commit

Permalink
fix(eplus): include exclude_unset when dumping model to json to incre…
Browse files Browse the repository at this point in the history
…ase stability
  • Loading branch information
taoning committed Sep 12, 2024
1 parent 307fcb7 commit d8b9cc0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frads/eplus.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,11 @@ def run(
}

with open(f"{output_prefix}.json", "w") as wtr:
wtr.write(self.model.model_dump_json(by_alias=True, exclude_none=True))
wtr.write(
self.model.model_dump_json(
by_alias=True, exclude_none=True, exclude_unset=True
)
)

self.api.runtime.set_console_output_status(self.state, not silent)
self.api.runtime.run_energyplus(self.state, [*opt, f"{output_prefix}.json"])
Expand Down

0 comments on commit d8b9cc0

Please sign in to comment.