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
197af1ee
Commit
197af1ee
authored
Oct 17, 2016
by
theos
Browse files
Fixed a bug in the _ignore_for_hash attribute in PowerSpace, causing __hash__ to fail.
parent
80eb0f82
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/spaces/power_space/power_space.py
View file @
197af1ee
...
...
@@ -19,7 +19,8 @@ class PowerSpace(Space):
dtype
=
np
.
dtype
(
'float'
)):
super
(
PowerSpace
,
self
).
__init__
(
dtype
)
self
.
_ignore_for_hash
+=
[
'_pindex'
,
'_kindex'
,
'_rho'
]
self
.
_ignore_for_hash
+=
[
'_pindex'
,
'_kindex'
,
'_rho'
,
'_pundex'
,
'_k_array'
]
if
not
isinstance
(
harmonic_domain
,
Space
):
raise
ValueError
(
...
...
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