Skip to content

Errors

API reference

The typed errors tsdive raises. Each one derives from TSDiveError.

Name Summary
tsdive.TSDiveError Base class for every typed refusal raised by tsdive.
tsdive.DesignTooSmall A switchback schedule has too few blocks for a randomization test.
tsdive.IncomparableSamplingError Windows produced under different sampling contracts were mixed.
tsdive.IncomparableUnitsError Two tags' units cannot be compared.
tsdive.InsufficientQuality A requested statistic has too few GOOD samples to compute.
tsdive.MspcAlignmentError Multivariate alignment could not be assembled.
tsdive.NarratorUnavailable LLM narration was requested with no endpoint configured.
tsdive.NonMonotonicIndex Timestamp index goes backwards.
tsdive.RegimeTooSparse A regime has too few GOOD samples to support a baseline.
tsdive.ScheduleMismatch A switchback plan's schedule differs from the one its fields produce.
tsdive.SchemaError Input violates the mandatory schema.
tsdive.UnresolvedUnitError A unit string could not be resolved and comparison was attempted.
tsdive.ZeroSpreadBaseline A baseline whose GOOD values do not spread, so its scale is 0.