optmat.exceptions#
The package’s exception and warning hierarchy.
Every error the package raises derives from OptmatError, so a caller can
catch the package’s refusals without catching unrelated ones.
Exceptions
An argument is outside its domain: not finite, or of the wrong sign. |
|
The catalogue's index disagrees with the source records, which are used instead. |
|
A curated data file is malformed, inconsistent or refers to something missing. |
|
A real-part method is evaluated where the gas absorbs noticeably. |
|
A model is evaluated outside the range over which its source supports it. |
|
Base class of every error raised by optmat. |
|
A thermodynamic state (pressure, temperature) is unphysical or out of domain. |
|
No curated model exists for what was asked: the data do not support one. |
- exception optmat.exceptions.ArgumentError[source]#
Bases:
OptmatError,ValueErrorAn argument is outside its domain: not finite, or of the wrong sign.
- exception optmat.exceptions.CatalogueIndexWarning[source]#
Bases:
UserWarningThe catalogue’s index disagrees with the source records, which are used instead.
The index only speeds up searches; a stale one is regenerated with
tools/catalogue_index.pyin a source checkout.
- exception optmat.exceptions.DataError[source]#
Bases:
OptmatError,ValueErrorA curated data file is malformed, inconsistent or refers to something missing.
- exception optmat.exceptions.ModelAbsorptionWarning[source]#
Bases:
UserWarningA real-part method is evaluated where the gas absorbs noticeably.
The real polarizability or
n - 1alone then leaves out the absorption: usecomplex_polarizability()orrefractive_index().
- exception optmat.exceptions.ModelRangeWarning[source]#
Bases:
UserWarningA model is evaluated outside the range over which its source supports it.
- exception optmat.exceptions.OptmatError[source]#
Bases:
ExceptionBase class of every error raised by optmat.
- exception optmat.exceptions.StateError[source]#
Bases:
OptmatError,ValueErrorA thermodynamic state (pressure, temperature) is unphysical or out of domain.
Bases:
OptmatError,LookupErrorNo curated model exists for what was asked: the data do not support one.