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
ed008f28
Commit
ed008f28
authored
Sep 03, 2017
by
Martin Reinecke
Browse files
bug fixes
parent
0a9153e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty2go/basic_arithmetics.py
View file @
ed008f28
...
...
@@ -28,7 +28,7 @@ __all__ = ['cos', 'sin', 'cosh', 'sinh', 'tan', 'tanh', 'arccos', 'arcsin',
def
_math_helper
(
x
,
function
):
if
isinstance
(
x
,
Field
):
return
Field
(
val
=
function
(
x
.
val
))
return
Field
(
domain
=
x
.
domain
,
val
=
function
(
x
.
val
))
else
:
return
function
(
np
.
asarray
(
x
))
...
...
nifty2go/field.py
View file @
ed008f28
...
...
@@ -429,10 +429,10 @@ class Field(object):
result_list
[
1
].
val
*=
spec
.
imag
if
real_signal
:
for
i
in
result_list
:
i
.
val
=
self
.
_hermitian_decomposition
(
i
.
val
,
preserve_gaussian_variance
=
True
)[
0
]
result_list
=
[
Field
(
i
.
domain
,
self
.
_hermitian_decomposition
(
i
.
val
,
preserve_gaussian_variance
=
True
)[
0
])
for
i
in
result_list
]
if
real_power
:
result
=
result_list
[
0
]
...
...
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