Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
354afbd6
Commit
354afbd6
authored
Oct 09, 2017
by
Theo Steininger
Browse files
Fixed PowerSpace._to_hdf5 and _from_hdf5
parent
195032b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/spaces/power_space/power_space.py
View file @
354afbd6
...
...
@@ -336,7 +336,6 @@ class PowerSpace(Space):
hdf5_group
[
'binbounds'
]
=
np
.
array
(
self
.
_binbounds
)
hdf5_group
.
attrs
[
'distribution_strategy'
]
=
\
self
.
_pindex
.
distribution_strategy
hdf5_group
.
attrs
[
'volume_type'
]
=
self
.
volume_type
return
{
'harmonic_partner'
:
self
.
harmonic_partner
}
@
classmethod
...
...
@@ -347,5 +346,4 @@ class PowerSpace(Space):
except
KeyError
:
bb
=
None
ds
=
str
(
hdf5_group
.
attrs
[
'distribution_strategy'
])
volume_type
=
str
(
hdf5_group
.
attrs
[
'volume_type'
])
return
PowerSpace
(
hp
,
ds
,
binbounds
=
bb
,
volume_type
=
volume_type
)
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