This is documentation for an old release of SciPy (version 1.7.0). Read this page in the documentation of the latest stable release (version 1.15.0).

scipy.odr.OdrStop

exception scipy.odr.OdrStop[source]

Exception stopping fitting.

You can raise this exception in your objective function to tell odr to stop fitting.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.