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
0669c952
Commit
0669c952
authored
Sep 18, 2018
by
Martin Reinecke
Browse files
Merge branch 'correlated_field_names' into 'NIFTy_5'
choose mutifield key See merge request ift/nifty-dev!108
parents
d77406e9
4f12103c
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty5/library/correlated_fields.py
View file @
0669c952
...
...
@@ -46,7 +46,7 @@ def CorrelatedField(s_space, amplitude_model):
def
MfCorrelatedField
(
s_space_spatial
,
s_space_energy
,
amplitude_model_spatial
,
amplitude_model_energy
):
amplitude_model_energy
,
name
=
"xi"
):
'''
Method for construction of correlated multi-frequency fields
'''
...
...
@@ -71,4 +71,4 @@ def MfCorrelatedField(s_space_spatial, s_space_energy, amplitude_model_spatial,
a_energy
=
dom_distr_energy
(
amplitude_model_energy
)
a
=
a_spatial
*
a_energy
A
=
pd
(
a
)
return
ht
(
A
*
FieldAdapter
(
MultiDomain
.
make
({
"xi"
:
h_space
}),
"xi"
))
return
ht
(
A
*
FieldAdapter
(
MultiDomain
.
make
({
name
:
h_space
}),
name
))
nifty5/linearization.py
View file @
0669c952
...
...
@@ -178,6 +178,14 @@ class Linearization(object):
return
Linearization
(
field
,
NullOperator
(
field
.
domain
,
field
.
domain
),
want_metric
=
want_metric
)
@
staticmethod
def
make_const_empty_input
(
field
,
want_metric
=
False
):
from
.operators.simple_linear_operators
import
NullOperator
from
.multi_domain
import
MultiDomain
return
Linearization
(
field
,
NullOperator
(
MultiDomain
.
make
({}),
field
.
domain
),
want_metric
=
want_metric
)
@
staticmethod
def
make_partial_var
(
field
,
constants
,
want_metric
=
False
):
from
.operators.scaling_operator
import
ScalingOperator
...
...
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