Skip to content

Commit

Permalink
Slot in rows for multiple points
Browse files Browse the repository at this point in the history
  • Loading branch information
shuds13 committed Oct 30, 2024
1 parent 74579d5 commit fa4a913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libensemble/gen_classes/aposmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ def __init__(

def _slot_in_data(self, results):
"""Slot in libE_calc_in and trial data into corresponding array fields. *Initial sample only!!*"""
for field in results.dtype.names:
self._tell_buf[field][self._n_buffd_results] = results[field]
self._tell_buf[self._n_buffd_results:self._n_buffd_results + len(results)] = results

# @property
# def _array_size(self):
Expand Down Expand Up @@ -85,6 +84,7 @@ def ask_numpy(self, num_points: int = 0) -> npt.NDArray:
return results

def tell_numpy(self, results: npt.NDArray, tag: int = EVAL_GEN_TAG) -> None:

if (results is None and tag == PERSIS_STOP) or self._told_initial_sample: # told to stop, by final_tell or libE
super().tell_numpy(results, tag)
self._n_buffd_results = 0
Expand Down

0 comments on commit fa4a913

Please sign in to comment.