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
2dfc4494
Commit
2dfc4494
authored
Jun 29, 2018
by
Martin Reinecke
Browse files
tweak imports
parent
d25f98f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
nifty5/library/apply_data.py
View file @
2dfc4494
def
ApplyData
(
data
,
var
,
model_data
):
# TODO This is rather confusing. Delete that eventually.
from
..
import
DiagonalOperator
,
Constant
,
sqrt
from
..operators.diagonal_operator
import
DiagonalOperator
from
..models.constant
import
Constant
from
..sugar
import
sqrt
sqrt_n
=
DiagonalOperator
(
sqrt
(
var
))
data
=
Constant
(
model_data
.
position
,
data
)
return
sqrt_n
.
inverse
(
model_data
-
data
)
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