Commit 883dc5bf authored by Martin Reinecke's avatar Martin Reinecke

more cosmetics

parent 4f8f591e
Pipeline #46517 passed with stages
in 8 minutes and 8 seconds
......@@ -122,9 +122,8 @@ class GaussianEnergy(EnergyOperator):
"""
def __init__(self, mean=None, covariance=None, domain=None):
if mean is not None and not isinstance(mean, Field):
if not isinstance(mean, MultiField):
raise TypeError
if mean is not None and not isinstance(mean, (Field, MultiField)):
raise TypeError
if covariance is not None and not isinstance(covariance,
LinearOperator):
raise TypeError
......@@ -309,7 +308,6 @@ class StandardHamiltonian(EnergyOperator):
Tells an internal :class:`SamplingEnabler` which convergence criterion
to use to draw Gaussian samples.
See also
--------
`Encoding prior knowledge in the structure of the likelihood`,
......
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