Skip to content

Commit

Permalink
fixed an issue in Retore
Browse files Browse the repository at this point in the history
Should fix #351.
  • Loading branch information
mikkokotila committed Jul 16, 2019
1 parent 21c52fa commit 42951e9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions talos/commands/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ def save_data(self):

import pandas as pd

# input data is <= 2d
try:
x = pd.DataFrame(self.scan_object.x[:100])
y = pd.DataFrame(self.scan_object.y[:100])

# input data is > 2d
except ValueError:
x = pd.DataFrame()
y = pd.DataFrame()
Expand Down
3 changes: 2 additions & 1 deletion talos/commands/restore.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ def __init__(self, path_to_zip):
z.extractall(self.extract_to)

# add params dictionary
self.params = np.load(self.file_prefix + '_params.npy').item()
self.params = np.load(self.file_prefix + '_params.npy',
allow_pickle=True).item()

# add experiment details
self.details = pd.read_csv(self.file_prefix + '_details.txt',
Expand Down

0 comments on commit 42951e9

Please sign in to comment.