Commit 943ef47a authored by Philipp Arras's avatar Philipp Arras
Browse files

Simplify interface of UnitLogGauss

parent 5debd56f
......@@ -4,19 +4,19 @@ from ..utilities import memo
class UnitLogGauss(Energy):
def __init__(self, position, s, inverter=None):
def __init__(self, s, inverter=None):
s: Sky model object
value = 0.5 * s.vdot(s), i.e. a log-Gauss distribution with unit
super(UnitLogGauss, self).__init__(position)
self._s =
super(UnitLogGauss, self).__init__(s.position)
self._s = s
self._inverter = inverter
def at(self, position):
return self.__class__(position, self._s, self._inverter)
return self.__class__(, self._inverter)
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