Commit ce8611e7 authored by Martin Reinecke's avatar Martin Reinecke

cosmetics

parent cf9bc7ae
......@@ -15,6 +15,7 @@
#
# NIFTy is being developed at the Max-Planck-Institut fuer Astrophysik.
def _logger_init():
import logging
from . import dobj
......
......@@ -58,7 +58,7 @@ class KL_Energy(Energy):
def at(self, position):
return KL_Energy(position, self._h, 0,
self._constants, self._constants_samples,
_samples = self._samples)
_samples=self._samples)
@property
def value(self):
......
......@@ -192,7 +192,6 @@ class _OpChain(_CombinedOperator):
x = op(x)
return x
def __repr__(self):
subs = "\n".join(sub.__repr__() for sub in self._ops)
return "_OpChain:\n" + indent(subs)
......@@ -225,7 +224,6 @@ class _OpProd(Operator):
makeOp(lin2._val)(lin1._jac), False)
return lin1.new(lin1._val*lin2._val, op(x.jac))
def __repr__(self):
subs = "\n".join(sub.__repr__() for sub in (self._op1, self._op2))
return "_OpProd:\n"+indent(subs)
......
......@@ -265,6 +265,7 @@ for f in ["sqrt", "exp", "log", "tanh", "positive_tanh", "conjugate"]:
return func2
setattr(_current_module, f, func(f))
def get_default_codomain(domainoid, space=None):
"""For `RGSpace`, returns the harmonic partner domain.
For `DomainTuple`, returns a copy of the object in which the domain
......
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