Skip to content

Commit

Permalink
LibensembleGenerator can provide matching dtype for list_dicts_to_np,…
Browse files Browse the repository at this point in the history
… but its only necessary within the ask()
  • Loading branch information
jlnav committed Aug 29, 2024
1 parent cbfdf0b commit 4261ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libensemble/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def ask(self, num_points: Optional[int] = 0) -> List[dict]:

def tell(self, results: List[dict]) -> None:
"""Send the results of evaluations to the generator."""
self.tell_numpy(list_dicts_to_np(results))
self.tell_numpy(list_dicts_to_np(results), dtype=self.gen_specs.get("out"))


class LibensembleGenThreadInterfacer(LibensembleGenerator):
Expand Down

0 comments on commit 4261ca8

Please sign in to comment.