Exceptions¶
spectrakit.exceptions.SpectraKitError ¶
spectrakit.exceptions.SpectrumShapeError ¶
spectrakit.exceptions.FileFormatError ¶
spectrakit.exceptions.DependencyError ¶
Bases: SpectraKitError, ImportError
Raised when an optional dependency is missing.
Examples:
>>> raise DependencyError(
... "h5py is required for HDF5 files. "
... "Install with: pip install spectrakit[io]"
... )
Source code in src/spectrakit/exceptions.py
spectrakit.exceptions.EmptySpectrumError ¶
Bases: SpectraKitError, ValueError
Raised when input spectrum is empty or has insufficient points.
Examples: