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
5adfb1c8
Commit
5adfb1c8
authored
Aug 24, 2016
by
theos
Browse files
Fixed a bug with spaces vs. axes. in FFTOperator.
parent
cb713171
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/operators/fft_operator/fft_operator.py
View file @
5adfb1c8
...
...
@@ -40,7 +40,8 @@ class FFTOperator(LinearOperator):
def
_times
(
self
,
x
,
spaces
,
types
):
spaces
=
utilities
.
cast_axis_to_tuple
(
spaces
,
len
(
x
.
domain
))
new_val
=
self
.
_forward_transformation
.
transform
(
x
.
val
,
axes
=
spaces
)
axes
=
x
.
domain_axes
[
spaces
[
0
]]
new_val
=
self
.
_forward_transformation
.
transform
(
x
.
val
,
axes
=
axes
)
if
spaces
is
None
:
result_domain
=
self
.
target
...
...
@@ -56,7 +57,8 @@ class FFTOperator(LinearOperator):
def
_inverse_times
(
self
,
x
,
spaces
,
types
):
spaces
=
utilities
.
cast_axis_to_tuple
(
spaces
,
len
(
x
.
domain
))
new_val
=
self
.
_inverse_transformation
.
transform
(
x
.
val
,
axes
=
spaces
)
axes
=
x
.
domain_axes
[
spaces
[
0
]]
new_val
=
self
.
_inverse_transformation
.
transform
(
x
.
val
,
axes
=
axes
)
if
spaces
is
None
:
result_domain
=
self
.
domain
...
...
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