Skip to content

Commit

Permalink
runners.py no longer calls setup() on gen
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnav committed Nov 11, 2024
1 parent c1ec7f6 commit a5133b9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions libensemble/utils/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,6 @@ def _start_generator_loop(self, tag, Work, H_in):
def _persistent_result(self, calc_in, persis_info, libE_info):
"""Setup comms with manager, setup gen, loop gen to completion, return gen's results"""
self.ps = PersistentSupport(libE_info, EVAL_GEN_TAG)
if hasattr(self.gen, "setup"):
self.gen.persis_info = persis_info # passthrough, setup() uses the gen attributes
self.gen.libE_info = libE_info
if self.gen.thread is None:
self.gen.setup() # maybe we're reusing a live gen from a previous run
# libE gens will hit the following line, but list_dicts_to_np will passthrough if the output is a numpy array
H_out = list_dicts_to_np(
self._get_initial_ask(libE_info), dtype=self.specs.get("out"), mapping=self.gen.variables_mapping
Expand Down

0 comments on commit a5133b9

Please sign in to comment.