Skip to content

Commit

Permalink
Merge pull request #59 from issp-center-dev/fix_52
Browse files Browse the repository at this point in the history
fix `history.load`
  • Loading branch information
yomichi authored Aug 20, 2024
2 parents e9ab4e3 + f6707a4 commit f946c52
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 f946c52

Please sign in to comment.