Skip to content

Commit

Permalink
fix history.load
Browse files Browse the repository at this point in the history
  • Loading branch information
yomichi committed Aug 20, 2024
1 parent e9ab4e3 commit f6707a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions physbo/search/discrete/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ def load(self, filename):
"""
data = np.load(filename)
M = data["num_runs"]
N = data["total_num_search"]
M = int(data["num_runs"])
N = int(data["total_num_search"])
self.num_runs = M
self.total_num_search = N
self.fx[0:N] = data["fx"]
Expand Down
4 changes: 2 additions & 2 deletions physbo/search/discrete_multi/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def load(self, filename):
with open(filename, "rb") as f:
data = pickle.load(f)

M = data["num_runs"]
N = data["total_num_search"]
M = int(data["num_runs"])
N = int(data["total_num_search"])
self.num_runs = M
self.total_num_search = N
self.fx[0:N] = data["fx"]
Expand Down

0 comments on commit f6707a4

Please sign in to comment.