Commit b2c5e03d authored by Philipp Arras's avatar Philipp Arras
Browse files

Fixup

parent fec223f7
Pipeline #70290 passed with stages
in 15 minutes and 34 seconds
......@@ -133,7 +133,7 @@ class VariableCovarianceGaussianEnergy(EnergyOperator):
res1 = x[self._icov].log().sum()
res = 0.5*(res0-res1)
if not lin:
return res
return Field.scalar(res)
if not x.want_metric:
return res
mf = {self._r: x.val[self._icov], self._icov: .5*x.val[self._icov]**(-2)}
......
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