Commit 0b2d39bc authored by Martin Reinecke's avatar Martin Reinecke

some more restructuring

parent da08f07e
......@@ -49,7 +49,7 @@ from .operators.energy_operators import (
EnergyOperator, GaussianEnergy, PoissonianEnergy, BernoulliEnergy,
Hamiltonian, SampledKullbachLeiblerDivergence)
from .probing.utils import probe_with_posterior_samples, probe_diagonal, \
from .probing import probe_with_posterior_samples, probe_diagonal, \
StatCalculator
from .minimization.line_search import LineSearch
......
......@@ -150,5 +150,4 @@ class Linearization(object):
@staticmethod
def make_const(field):
from .operators.simple_linear_operators import NullOperator
from .operators.scaling_operator import ScalingOperator
return Linearization(field, ScalingOperator(0., field.domain))
return Linearization(field, NullOperator(field.domain, field.domain))
......@@ -18,8 +18,8 @@
from __future__ import absolute_import, division, print_function
from ..compat import *
from ..field import Field
from .compat import *
from .field import Field
class StatCalculator(object):
......
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