Skip to content
GitLab
Menu
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
35acfb0c
Commit
35acfb0c
authored
May 01, 2017
by
Theo Steininger
Browse files
Fixed hermitianization in Field for power_synthesize
parent
86b44136
Pipeline
#11879
passed with stage
in 10 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty/field.py
View file @
35acfb0c
...
...
@@ -363,15 +363,12 @@ class Field(Loggable, Versionable, object):
if
real_signal
:
for
power_space_index
in
spaces
:
harmonic_domain
=
result_domain
[
power_space_index
]
result_val_list
=
\
[
harmonic_domain
.
hermitian_decomposition
(
result_val_list
[
0
],
axes
=
result_list
[
0
].
domain_axes
[
power_space_index
],
preserve_gaussian_variance
=
True
)[
0
],
harmonic_domain
.
hermitian_decomposition
(
result_val_list
[
1
],
axes
=
result_list
[
1
].
domain_axes
[
power_space_index
],
preserve_gaussian_variance
=
True
)[
1
]]
result_val_list
=
[
harmonic_domain
.
hermitian_decomposition
(
result_val
,
axes
=
result
.
domain_axes
[
power_space_index
],
preserve_gaussian_variance
=
True
)[
0
]
for
(
result
,
result_val
)
in
zip
(
result_list
,
result_val_list
)]
# store the result into the fields
[
x
.
set_val
(
new_val
=
y
,
copy
=
False
)
for
x
,
y
in
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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