Exception#

Exceptions that are raised by zfit.

Some are to provide a more specific error message, others are to steer the execution by raising an error that will be caught in the right place.

zfit.exception.NormRangeNotImplemented#

alias of NormNotImplemented

exception zfit.exception.MultipleLimitsNotImplemented[source]#

Bases: StandardControlFlow

Indicates that a function does not support several limits in a Space.

add_note()#

Exception.add_note(note) – add a note to the exception

with_traceback()#

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

exception zfit.exception.VectorizedLimitsNotImplemented[source]#

Bases: StandardControlFlow

Indicates that a function does not support vectorized (n_events > 1) limits in a Space.

add_note()#

Exception.add_note(note) – add a note to the exception

with_traceback()#

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

exception zfit.exception.AnalyticNotImplemented(*args)[source]#

Bases: ZfitNotImplementedError

General exception if an analytic way is not implemented.

add_note()#

Exception.add_note(note) – add a note to the exception

with_traceback()#

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

exception zfit.exception.FunctionNotImplemented(*args)[source]#

Bases: ZfitNotImplementedError

Any function, e.g. in a BaseModel, that not implemented and a fallback should be called.

Preferably use more specific exceptions

add_note()#

Exception.add_note(note) – add a note to the exception

with_traceback()#

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

exception zfit.exception.AnalyticSamplingNotImplemented(*args)[source]#

Bases: AnalyticNotImplemented

If analytic sampling from a distribution is not possible.

add_note()#

Exception.add_note(note) – add a note to the exception

with_traceback()#

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

exception zfit.exception.AnalyticIntegralNotImplemented(*args)[source]#

Bases: AnalyticNotImplemented

If an analytic integral is not provided.

add_note()#

Exception.add_note(note) – add a note to the exception

with_traceback()#

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

exception zfit.exception.SpecificFunctionNotImplemented(*args)[source]#

Bases: FunctionNotImplemented

If a specific function, e.g. by the user is not implemented.

add_note()#

Exception.add_note(note) – add a note to the exception

with_traceback()#

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

exception zfit.exception.InitNotImplemented[source]#

Bases: StandardControlFlow

Indicates that a minimize method does not support a FitResult instead of a loss.

add_note()#

Exception.add_note(note) – add a note to the exception

with_traceback()#

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