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
d304bf8c
Commit
d304bf8c
authored
Nov 07, 2019
by
Philipp Arras
Browse files
Simplification
parent
b1e900be
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/correlated_fields.py
View file @
d304bf8c
...
...
@@ -205,14 +205,9 @@ class _Amplitude(Operator):
mask
=
np
.
zeros
(
target
.
shape
)
mask
[
0
]
=
vol
adder
=
Adder
(
from_global_data
(
target
,
mask
))
self
.
_op
=
adder
@
((
expander
@
fluctuations
)
*
normal_ampl
)
self
.
_domain
=
self
.
_op
.
domain
self
.
_target
=
self
.
_op
.
target
def
apply
(
self
,
x
):
self
.
_check_input
(
x
)
return
self
.
_op
(
x
)
op
=
adder
@
((
expander
@
fluctuations
)
*
normal_ampl
)
self
.
apply
=
op
.
apply
self
.
_domain
,
self
.
_target
=
op
.
domain
,
op
.
target
class
CorrelatedFieldMaker
:
...
...
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