Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return elementary dict even when simulations fail #197

Merged
merged 5 commits into from
Mar 12, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions buildstockbatch/eagle.py
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
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.