Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NIFTy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
15
Issues
15
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ift
NIFTy
Commits
0b552459
Commit
0b552459
authored
Nov 21, 2019
by
Philipp Haim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
nifty5/library/correlated_fields.py
nifty5/library/correlated_fields.py
+12
-2
No files found.
nifty5/library/correlated_fields.py
View file @
0b552459
...
@@ -472,7 +472,7 @@ class CorrelatedFieldMaker:
...
@@ -472,7 +472,7 @@ class CorrelatedFieldMaker:
lst
=
[(
'Offset amplitude'
,
self
.
amplitude_total_offset
),
lst
=
[(
'Offset amplitude'
,
self
.
amplitude_total_offset
),
(
'Total fluctuation amplitude'
,
self
.
total_fluctuation
)]
(
'Total fluctuation amplitude'
,
self
.
total_fluctuation
)]
namps
=
len
(
self
.
amplitudes
)
namps
=
len
(
self
.
normalized_
amplitudes
)
if
namps
>
1
:
if
namps
>
1
:
for
ii
in
range
(
namps
):
for
ii
in
range
(
namps
):
lst
.
append
((
'Slice fluctuation (space {})'
.
format
(
ii
),
lst
.
append
((
'Slice fluctuation (space {})'
.
format
(
ii
),
...
@@ -498,9 +498,19 @@ class CorrelatedFieldMaker:
...
@@ -498,9 +498,19 @@ class CorrelatedFieldMaker:
return
fluctuations_slice_mean
/
np
.
mean
(
np
.
sqrt
(
scm
))
return
fluctuations_slice_mean
/
np
.
mean
(
np
.
sqrt
(
scm
))
@
property
@
property
def
amplitudes
(
self
):
def
normalized_
amplitudes
(
self
):
return
self
.
_a
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
@
property
def
amplitude_total_offset
(
self
):
def
amplitude_total_offset
(
self
):
return
self
.
_azm
return
self
.
_azm
...
...
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