mufasa.exceptions#

The mufasa.exceptions module provides custom exceptions for handling errors specific to spectral fitting and signal-to-noise ratio (SNR) masking.

exception mufasa.exceptions.FitTypeError[source]#

Bases: LookupError

Fitttype provided is not valid.

This is raised whenever the fittype specified by the user is invalid

exception mufasa.exceptions.SNRMaskError[source]#

Bases: Exception

SNR Mask has no valid pixel.

This is raised whenever the snr_min provided results in masks with zero valid pixel

exception mufasa.exceptions.StartFitError[source]#

Bases: Exception

Fitting failed from the beginning

This is raised whenever pcube.fiteach raises the follwoing: AssertionError: The first fitted pixel did not yield a fit. Please try starting from a different pixel.