NSSDNError#
- exception ns_sdn.exceptions.NSSDNError[source]#
Bases:
ExceptionBase class for every exception raised by ns-sdn. Never raised directly.
Catch this to handle anything the package refuses in one clause; catch a subclass to handle one kind of fix.
Example
>>> import numpy as np >>> from ns_sdn.spectral_decomposition import NSSDN >>> try: ... NSSDN(np.array([1.0, np.nan, 3.0, 4.0])) ... except NSSDNError as error: ... print(type(error).__name__, "-", error) NumericalError - endog contains non-finite values; missing data is not supported.