Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
Daniel Boeckenhoff
tfields
Commits
6e879ff1
Commit
6e879ff1
authored
Oct 21, 2019
by
Daniel Boeckenhoff
Browse files
allow_pickle=True in np.load
parent
b1fabb27
Changes
1
Hide whitespace changes
Inline
Side-by-side
tfields/core.py
View file @
6e879ff1
...
...
@@ -359,7 +359,9 @@ class AbstractNdarray(np.ndarray):
Factory method
Given a path to a npz file, construct the object
"""
np_file
=
np
.
load
(
path
,
**
load_kwargs
)
# TODO: think about allow_pickle, wheter it really should be True or
# wheter we could avoid pickling
np_file
=
np
.
load
(
path
,
allow_pickle
=
True
,
**
load_kwargs
)
return
cls
.
_from_dict
(
**
np_file
)
def
_as_dict
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment