Skip to content

WIP: Throw exception if curvature is not implemented for RelaxedNewton

Philipp Arras requested to merge exceptionInRelaxedNewton into nifty2go

The problem: If an energy class without curvature is defined and then minimized with RelaxedNewton, it does not raise an error and continues the script. In this way, I thought that my algorithm estimates noise variances but it doesn't.

I do not know how to implement this check properly. Do I really need to import sys for that and use sys.exit()?

Merge request reports