Skip to content

Commit

Permalink
Merge pull request #68 from dnowacki-usgs/fix-pickle
Browse files Browse the repository at this point in the history
Allow pickling in np.load for numpy>=1.16.3. Fixes #67.
  • Loading branch information
efiring authored May 8, 2019
2 parents 5322b0b + 9e0cd86 commit 5ad0aba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utide/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def loadbunch(fname, masked=True):
with open(fname, 'rb') as fobj:
xx = loadmat(fobj, chars_as_strings=True)
elif fname.endswith('.npz'):
xx = np.load(fname, encoding='latin1')
xx = np.load(fname, encoding='latin1', allow_pickle=True)
else:
raise ValueError('Unrecognized file {}'.format(fname))
keys = [k for k in xx.keys() if not k.startswith("__")]
Expand Down

0 comments on commit 5ad0aba

Please sign in to comment.