Commit 5b54f5d3 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

fix

parent 330802d5
...@@ -21,7 +21,6 @@ from __future__ import absolute_import, division, print_function ...@@ -21,7 +21,6 @@ from __future__ import absolute_import, division, print_function
from .. import utilities from .. import utilities
from ..compat import * from ..compat import *
from ..domain_tuple import DomainTuple from ..domain_tuple import DomainTuple
from ..domains.domain import Domain
from ..field import Field from ..field import Field
from ..linearization import Linearization from ..linearization import Linearization
from ..sugar import makeOp from ..sugar import makeOp
...@@ -29,6 +28,7 @@ from .operator import Operator ...@@ -29,6 +28,7 @@ from .operator import Operator
from .sampling_enabler import SamplingEnabler from .sampling_enabler import SamplingEnabler
from .sandwich_operator import SandwichOperator from .sandwich_operator import SandwichOperator
from .simple_linear_operators import VdotOperator from .simple_linear_operators import VdotOperator
from ..sugar import makeDomain
class EnergyOperator(Operator): class EnergyOperator(Operator):
...@@ -85,8 +85,7 @@ class GaussianEnergy(EnergyOperator): ...@@ -85,8 +85,7 @@ class GaussianEnergy(EnergyOperator):
self._icov = None if covariance is None else covariance.inverse self._icov = None if covariance is None else covariance.inverse
def _checkEquivalence(self, newdom): def _checkEquivalence(self, newdom):
if isinstance(newdom, Domain): newdom = makeDomain(newdom)
newdom = DomainTuple.make(newdom)
if self._domain is None: if self._domain is None:
self._domain = newdom self._domain = newdom
else: else:
......
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