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
0b552459
Commit
0b552459
authored
Nov 21, 2019
by
Philipp Haim
Browse files
New property names
parent
603f40d8
Pipeline
#64080
failed with stages
in 8 minutes and 59 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/correlated_fields.py
View file @
0b552459
...
...
@@ -472,7 +472,7 @@ class CorrelatedFieldMaker:
lst
=
[(
'Offset amplitude'
,
self
.
amplitude_total_offset
),
(
'Total fluctuation amplitude'
,
self
.
total_fluctuation
)]
namps
=
len
(
self
.
amplitudes
)
namps
=
len
(
self
.
normalized_
amplitudes
)
if
namps
>
1
:
for
ii
in
range
(
namps
):
lst
.
append
((
'Slice fluctuation (space {})'
.
format
(
ii
),
...
...
@@ -498,9 +498,19 @@ class CorrelatedFieldMaker:
return
fluctuations_slice_mean
/
np
.
mean
(
np
.
sqrt
(
scm
))
@
property
def
amplitudes
(
self
):
def
normalized_
amplitudes
(
self
):
return
self
.
_a
@
property
def
amplitude
(
self
):
if
len
(
self
.
_a
)
>
1
:
s
=
(
'If more than one spectrum is present in the model,'
,
' no unique set of amplitudes exist because only the'
,
' relative scale is determined.'
)
raise
NotImplementedError
(
s
)
expand
=
VdotOperator
(
full
(
self
.
_a
[
0
].
target
,
1
)).
adjoint
return
self
.
_a
[
0
]
*
(
expand
@
self
.
amplitude_total_offset
)
@
property
def
amplitude_total_offset
(
self
):
return
self
.
_azm
...
...
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