Skip to content

Commit

Permalink
better buffer updating suggestion from shuds
Browse files Browse the repository at this point in the history
  • Loading branch information
jlnav committed Oct 31, 2024
1 parent e443af9 commit a1937a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions libensemble/gen_classes/aposmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,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

def _enough_initial_sample(self):
return (
Expand Down

0 comments on commit a1937a9

Please sign in to comment.