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.
- exception zfit.exception.AnalyticIntegralNotImplemented(*args)[source]#
Bases:
AnalyticNotImplementedIf an analytic integral is not provided.
- add_note(object, /)#
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception zfit.exception.AnalyticNotImplemented(*args)[source]#
Bases:
ZfitNotImplementedErrorGeneral exception if an analytic way is not implemented.
- add_note(object, /)#
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception zfit.exception.AnalyticSamplingNotImplemented(*args)[source]#
Bases:
AnalyticNotImplementedIf analytic sampling from a distribution is not possible.
- add_note(object, /)#
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception zfit.exception.FunctionNotImplemented(*args)[source]#
Bases:
ZfitNotImplementedErrorAny function, e.g. in a BaseModel, that not implemented and a fallback should be called.
Preferably use more specific exceptions
- add_note(object, /)#
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception zfit.exception.InitNotImplemented[source]#
Bases:
StandardControlFlowIndicates that a minimize method does not support a FitResult instead of a loss.
- add_note(object, /)#
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception zfit.exception.InvalidNameError[source]#
Bases:
ExceptionException raised when a name is invalid.
- add_note(object, /)#
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception zfit.exception.MultipleLimitsNotImplemented[source]#
Bases:
StandardControlFlowIndicates that a function does not support several limits in a
Space.- add_note(object, /)#
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- zfit.exception.NormRangeNotImplemented#
alias of
NormNotImplemented
- exception zfit.exception.SpecificFunctionNotImplemented(*args)[source]#
Bases:
FunctionNotImplementedIf a specific function, e.g. by the user is not implemented.
- add_note(object, /)#
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.
- exception zfit.exception.VectorizedLimitsNotImplemented[source]#
Bases:
StandardControlFlowIndicates that a function does not support vectorized (n_events > 1) limits in a
Space.- add_note(object, /)#
Exception.add_note(note) – add a note to the exception
- with_traceback(object, /)#
Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.