Exceptions

Exceptions for Carousel.

Unnamed Data Error

exception carousel.core.exceptions.UnnamedDataError(filename)[source]

An exception raised when a parameter is loaded without a name.

Parameters:filename (str) – The name of the file from which the data was loaded.

Duplicate Registry Item Error

exception carousel.core.exceptions.DuplicateRegItemError(keys)[source]

An exception raised when duplicate data is registered.

Parameters:keys (set) – Keys of the duplicate data.

Mismatched Registry Meta Keys Error

exception carousel.core.exceptions.MismatchRegMetaKeysError(keys)[source]

An exception raised when meta with mismatched keys is registered.

Parameters:keys (set) – Keys of the mismatched meta.

Uncertainty Percent Units Error

exception carousel.core.exceptions.UncertaintyPercentUnitsError(key, units)[source]

An exception raised when uncertainty doesn’t have percent units.

Parameters:
  • key (str) – Key of uncertainty that doesn’t have percent units.
  • units (str) – Units of the uncertainty key that doesn’t have percent units.

Uncertainty Variance Error

exception carousel.core.exceptions.UncertaintyVarianceError(key, value)[source]

An exception raised when uncertainty doesn’t match variance.

Parameters:
  • key (str) – Key of uncertainty that doesn’t match variance.
  • value (float) – Value of the uncertainty key that doesn’t match variance.

Uncertainty Bounds Units Error

exception carousel.core.exceptions.UncertaintyBoundsUnitsError(key, lo_units, up_units)[source]

An exception raised when the lower and upper uncertainty bounds do not have matching units, which should both be percent, otherwise UncertaintyPercentUnitsError is raised.

Parameters:
  • key (str) – Uncertainty key with mismatched lower and upper bounds.
  • lo_units (quantities) – Units of lower uncertainty bound.
  • up_units (quantities) – Units of upper uncertainty bound

Circular Dependency Error

exception carousel.core.exceptions.CircularDependencyError(keys)[source]

Topological sort cyclic error.

Mixed Text No Match Error

exception carousel.core.exceptions.MixedTextNoMatchError(re_meth, pattern, data)[source]

No match in mixed text data source error.

Missing Data Error

exception carousel.core.exceptions.MissingDataError(data_srcs)[source]

Data is missing or incomplete.