Commit ce8611e7 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

cosmetics

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