Skip to content

Commit

Permalink
swap defaults to False of kill_canceled_sims and safe_mode (#1053)
Browse files Browse the repository at this point in the history
* swap defaults to False of kill_canceled_sims and safe_mode

* enable kill_canceled_sims in test_cancel_in_alloc

* revert default-option swap for kill_canceled_sims for now
  • Loading branch information
jlnav committed Aug 9, 2023
1 parent dfdcd4a commit 95b7b11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion libensemble/specs.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class LibeSpecs(BaseModel):
disable_log_files: Optional[bool] = False
""" Disable the creation of ``ensemble.log`` and ``libE_stats.txt`` log files """

safe_mode: Optional[bool] = True
safe_mode: Optional[bool] = False
""" Prevents user functions from overwriting protected History fields, but requires moderate overhead """

stats_fmt: Optional[dict] = {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
# Main block is necessary only when using local comms with spawn start method (default on macOS and Windows).
if __name__ == "__main__":
nworkers, is_manager, libE_specs, _ = parse_args()
libE_specs["kill_canceled_sims"] = True

sim_specs = {
"sim_f": sim_f,
Expand Down

0 comments on commit 95b7b11

Please sign in to comment.