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

fixes

parent 60c6859d
from builtins import *
from ..minimization.energy import Energy
from ..utilities import memo
from ..utilities import memo, my_sum
class SampledKullbachLeiblerDivergence(Energy):
......
......@@ -130,6 +130,7 @@ class Energy(NiftyMetaBase()):
return None
def makeInvertible(self, controller, preconditioner=None):
from .iteration_controller import IterationController
if not isinstance(controller, IterationController):
raise TypeError
return CurvatureInversionEnabler(self, controller, preconditioner)
......
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