Skip to content

Commit

Permalink
fix error in diff namer for overlapping output checkpointed experiments
Browse files Browse the repository at this point in the history
  • Loading branch information
octopuscabbage committed Mar 12, 2021
1 parent 53d0042 commit 693a962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def read(fname):

setup(
name="smallab",
version="1.11.4",
version="1.11.5",
url='https://github.com/octopuscabbage/smallab',
packages=find_packages(),
install_requires=required,
Expand Down
3 changes: 2 additions & 1 deletion smallab/runner/runner_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def _interior_fn():
result = run_with_correct_handler(experiment, name, specification,eventQueue, diff_namer=diff_namer)
if isinstance(result, types.GeneratorType):
for cur_result in result:
diff_namer.extend_name(cur_result["specification"])
if diff_namer is not None:
diff_namer.extend_name(cur_result["specification"])
save_run(name, experiment, cur_result["specification"], cur_result["result"], force_pickle,diff_namer=diff_namer, extended_keys=True)
else:
save_run(name, experiment, specification, result, force_pickle,diff_namer=diff_namer)
Expand Down

0 comments on commit 693a962

Please sign in to comment.