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
Changes from 2 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
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,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