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
0e42beff
Commit
0e42beff
authored
May 10, 2017
by
Theo Steininger
Browse files
Fixed fft side effect.
parent
9b85909a
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty/operators/fft_operator/fft_operator.py
View file @
0e42beff
...
...
@@ -174,7 +174,7 @@ class FFTOperator(LinearOperator):
result_field
=
x
.
copy_empty
(
domain
=
result_domain
,
dtype
=
self
.
target_dtype
)
result_field
.
set_val
(
new_val
=
new_val
,
copy
=
Fals
e
)
result_field
.
set_val
(
new_val
=
new_val
,
copy
=
Tru
e
)
return
result_field
...
...
@@ -198,7 +198,7 @@ class FFTOperator(LinearOperator):
result_field
=
x
.
copy_empty
(
domain
=
result_domain
,
dtype
=
self
.
domain_dtype
)
result_field
.
set_val
(
new_val
=
new_val
,
copy
=
Fals
e
)
result_field
.
set_val
(
new_val
=
new_val
,
copy
=
Tru
e
)
return
result_field
...
...
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