Source code for finesse.warnings

"""Finesse-specific warnings."""


[docs]class FinesseWarning(Warning): """A generic warning thrown by Finesse.""" pass
[docs]class ModelParameterSettingWarning(FinesseWarning): """An elements parameter is not using its prefer setter method.""" pass
[docs]class CavityUnstableWarning(FinesseWarning): """A cavity geometry has become unstable and its eigenmode is no longer calculable.""" pass
[docs]class KeywordUsedWarning(FinesseWarning): """A KatScript keyword was used as a name for some element in the model.""" pass
[docs]class InvalidSweepVariableWarning(FinesseWarning): """An invalid variable value was used during a sweep action. Can occur when trying to sweep relative to an infinite value, or using a NaN. """ pass