rydiqule.exceptionsΒΆ

Rydiqule Custom Exceptions and Warnings

This module defines a number of custom Errors and Warnings for use in Rydiqule.

It ensures that all RydiquleWarnings are always shown. This behavior can be changed by calling warnings.simplefilter().

It also defines custom exception handlers to hide the raise statement associated with RydiquleErrors. This behavior can be suppressed by calling rq.debug_state(True).

Functions

debug_state()

Returns current rydiqule debug state

quiet_exception_handler(exception_type, ...)

set_debug_state(state)

Controls DEBUG state of rydiqule.

Exceptions

AtomError

An error in interacting with ARC

CouplingNotAllowedError

Indicated coupling is not allowed (eg dipole-forbidden)

NLJMWarning

Indicates Cell has likely been called with the old state specification [n, l, j, m] for a solve that did not intend to use fine-structure magnetic sublevels.

PopulationNotConservedWarning

Indicates population will not be conserved in the model.

RWAWarning

Indicates the coupling is using a large transition frequency outside the rotating wave approximation.

RydiquleError

A rydiqule error

RydiquleWarning

Indicates a rydiqule-specfic warning.

TimeDependenceWarning

Indicates a time-dependent coupling is being used in a steady-state context