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
c8e16cdf
Commit
c8e16cdf
authored
Oct 08, 2018
by
Philipp Arras
Browse files
Cleanup
parent
42068f64
Changes
2
Hide whitespace changes
Inline
Side-by-side
nifty5/library/amplitude_model.py
View file @
c8e16cdf
...
...
@@ -23,7 +23,6 @@ import numpy as np
from
..compat
import
*
from
..domains.power_space
import
PowerSpace
from
..field
import
Field
from
..operators.offset_operator
import
OffsetOperator
from
..sugar
import
makeOp
,
sqrt
...
...
@@ -105,6 +104,7 @@ def SlopeModel(logk_space, sm, sv, im, iv):
'''
from
..operators.slope_operator
import
SlopeOperator
from
..operators.offset_operator
import
OffsetOperator
phi_mean
=
np
.
array
([
sm
,
im
+
sm
*
logk_space
.
t_0
[
0
]])
phi_sig
=
np
.
array
([
sv
,
iv
])
slope
=
SlopeOperator
(
logk_space
)
...
...
@@ -113,16 +113,8 @@ def SlopeModel(logk_space, sm, sv, im, iv):
return
slope
(
OffsetOperator
(
phi_mean
)(
makeOp
(
phi_sig
)))
def
AmplitudeModel
(
s_space
,
Npixdof
,
ceps_a
,
ceps_k
,
sm
,
sv
,
im
,
iv
,
keys
=
[
'tau'
,
'phi'
],
zero_mode
=
True
):
def
AmplitudeModel
(
s_space
,
Npixdof
,
ceps_a
,
ceps_k
,
sm
,
sv
,
im
,
iv
,
keys
=
[
'tau'
,
'phi'
],
zero_mode
=
True
):
'''
Computes a smooth power spectrum.
Output lives in PowerSpace.
...
...
nifty5/library/correlated_fields.py
View file @
c8e16cdf
...
...
@@ -51,11 +51,8 @@ def CorrelatedField(s_space, amplitude_model, name='xi'):
return
ht
(
vol
(
A
)
*
FieldAdapter
(
h_space
,
name
))
def
MfCorrelatedField
(
s_space_spatial
,
s_space_energy
,
amplitude_model_spatial
,
amplitude_model_energy
,
name
=
"xi"
):
def
MfCorrelatedField
(
s_space_spatial
,
s_space_energy
,
amplitude_model_spatial
,
amplitude_model_energy
,
name
=
"xi"
):
'''
Method for construction of correlated multi-frequency fields
'''
...
...
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