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
a9a60b44
Commit
a9a60b44
authored
Jan 04, 2019
by
Philipp Frank
Browse files
hotfix
parent
0aa9e11a
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/dynamic_operator.py
View file @
a9a60b44
...
...
@@ -127,7 +127,7 @@ def make_dynamic_operator(FFT,harmonic_padding,sm_s0,sm_x0,
c
=
makeOp
(
Field
.
from_global_data
(
c
.
target
,
np
.
array
(
sigc
)))(
c
)
lightspeed
=
ScalingOperator
(
-
0.5
,
c
.
target
)(
c
).
exp
()
scaling
=
m
.
target
[
0
].
distances
[
1
:]
/
m
.
target
[
0
].
distances
[
0
]
scaling
=
np
.
array
(
m
.
target
[
0
].
distances
[
1
:]
)
/
m
.
target
[
0
].
distances
[
0
]
scaling
=
DiagonalOperator
(
Field
.
from_global_data
(
c
.
target
,
scaling
))
ops
[
'lightspeed'
]
=
scaling
(
lightspeed
)
...
...
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