Skip to content

Commit

Permalink
self.actions should be ndarray
Browse files Browse the repository at this point in the history
  • Loading branch information
yomichi committed Dec 23, 2024
1 parent 37205c7 commit 9109384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physbo/search/discrete_multi/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(
msg = "ERROR: len(initial_data[0]) != initial_data[1].shape[0]"
raise RuntimeError(msg)
self.write(actions, fs)
self.actions = sorted(list(set(self.actions) - set(actions)))
self.actions = np.array(sorted(list(set(self.actions) - set(actions))))

if comm is None:
self.mpicomm = None
Expand Down

0 comments on commit 9109384

Please sign in to comment.