Commit 8dea6eb7 authored by Theo Steininger's avatar Theo Steininger Committed by Pumpe, Daniel (dpumpe)
Browse files

Added check in GFFT init for even number of pixels per axis.

parent f87ec310
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment