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