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


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