Commit 2dfc4494 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

tweak imports

parent d25f98f2
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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment