Exceptions

Exceptions for SimKit.

SimKit Exception

exception simkit.core.exceptions.SimKitException[source]

Base exception class for SimKit.

Unnamed Data Error

exception simkit.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 simkit.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 simkit.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 simkit.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 simkit.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 simkit.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 simkit.core.exceptions.CircularDependencyError(keys)[source]

Topological sort cyclic error.

Mixed Text No Match Error

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

No match in mixed text data source error.

Missing Data Error

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

Data is missing or incomplete.