Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ift
NIFTy
Commits
60afec81
Commit
60afec81
authored
Jul 14, 2017
by
Martin Reinecke
Browse files
fix HDF5 input
parent
87c22d1b
Pipeline
#14883
failed with stage
in 6 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/spaces/power_space/power_space.py
View file @
60afec81
...
...
@@ -16,7 +16,8 @@
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik
# and financially supported by the Studienstiftung des deutschen Volkes.
# from builtins import str
from
builtins
import
str
import
ast
import
numpy
as
np
from
d2o
import
distributed_data_object
...
...
@@ -313,6 +314,6 @@ class PowerSpace(Space):
@
classmethod
def
_from_hdf5
(
cls
,
hdf5_group
,
repository
):
hp
=
repository
.
get
(
'harmonic_partner'
,
hdf5_group
)
exec
(
"bb = "
+
hdf5_group
.
attrs
[
'binbounds'
])
bb
=
ast
.
literal_eval
(
hdf5_group
.
attrs
[
'binbounds'
])
ds
=
hdf5_group
.
attrs
[
'distribution_strategy'
]
return
PowerSpace
(
hp
,
ds
,
binbounds
=
bb
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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