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
d633540e
Commit
d633540e
authored
Apr 11, 2017
by
Theo Steininger
Browse files
Added check in GFFT init for even number of pixels per axis.
parent
d4179f8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/operators/fft_operator/transformations/rg_transforms.py
View file @
d633540e
...
...
@@ -553,6 +553,10 @@ class GFFT(Transform):
if
fft_module
is
None
:
fft_module
=
gdi
[
'gfft_dummy'
]
# GFFT only works for domains with an even number of pixels per axis
if
np
.
any
(
np
.
array
(
domain
.
shape
)
%
2
):
raise
AttributeError
(
"GFFT needs an even number of pixels per "
"axis of domain. Got: %s"
%
str
(
domain
.
shape
))
self
.
domain
=
domain
self
.
codomain
=
codomain
self
.
fft_machine
=
fft_module
...
...
Theo Steininger
@theos
mentioned in issue
#71 (closed)
·
Apr 10, 2017
mentioned in issue
#71 (closed)
mentioned in issue #71
Toggle commit list
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