Skip to content

Commit

Permalink
Merge pull request #197 from NREL/failed_sim_bug_fix
Browse files Browse the repository at this point in the history
Return elementary dict even when simulations fail
  • Loading branch information
nmerket committed Mar 12, 2021
2 parents 9459728 + 27f4bc0 commit 1cd0349
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions buildstockbatch/eagle.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@ def run_building_d(i, upgrade_idx):
txt = "\n" + "#" * 20 + "\n" + f"Traceback for building{i}\n" + txt
f.write(txt)
del txt
upgrade_id = 0 if upgrade_idx is None else upgrade_idx + 1
return {"building_id": i, "upgrade": upgrade_id}

# Run the simulations, get the data_point_out.json info from each
tick = time.time()
Expand Down
7 changes: 7 additions & 0 deletions docs/changelog/changelog_dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,10 @@ Development Changelog
:tickets: 164

Removing master/slave language from AWS EMR configuration in project schema.

.. change::
:tags: bugfix
:pullreq: 197
:tickets: 196

Fixing issue where the postprocessing fails when a building simulation crashes in buildstockbatch.

0 comments on commit 1cd0349

Please sign in to comment.