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
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
ift
NIFTy
Commits
cb997558
Commit
cb997558
authored
Jul 13, 2018
by
Philipp Arras
Browse files
Merge! Simplify make_correlated_field
parent
40996be6
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/correlated_fields.py
View file @
cb997558
...
...
@@ -44,13 +44,10 @@ def make_correlated_field(s_space, amplitude_model):
ht
=
FFTOperator
(
h_space
,
s_space
)
p_space
=
amplitude_model
.
value
.
domain
[
0
]
power_distributor
=
PowerDistributor
(
h_space
,
p_space
)
# FIXME Remove tau and phi stuff from here. Should not be necessary
position
=
MultiField
.
from_dict
({
'xi'
:
Field
.
from_random
(
'normal'
,
h_space
),
'tau'
:
amplitude_model
.
position
[
'tau'
],
'phi'
:
amplitude_model
.
position
[
'phi'
]})
position
=
MultiField
.
from_dict
({
'xi'
:
Field
.
full
(
h_space
,
0.
)})
xi
=
Variable
(
position
)[
'xi'
]
A
=
power_distributor
(
amplitude_model
)
correlated_field_h
=
A
*
xi
correlated_field
=
ht
(
correlated_field_h
)
...
...
Write
Preview
Markdown
is supported
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