Skip to content

Commit

Permalink
Fixed an issue with reallocated the pareto front object. Test case ad…
Browse files Browse the repository at this point in the history
…ded and appears to be fixed
  • Loading branch information
ianran committed Jun 13, 2024
1 parent 9e5d475 commit 72a3869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rdml_graph/mcts/ParetoFront.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def add(self, r, n):
tmp = self.front
tmp_val = self.front_val
self.front = np.empty((self.front.shape[0]*2, self.front.shape[1]))
self.front_val = np.empty(self.size*2, dtype=np.object)
self.front_val = np.empty(self.size*2, dtype=object)
self.front[:self.size] = tmp
self.front_val[:self.size] = tmp_val

Expand Down

0 comments on commit 72a3869

Please # to comment.