Errors#

exception astrophot.errors.AstroPhotError[source]#

Bases: Exception

Base exception for all AstroPhot processes.

exception astrophot.errors.InvalidData[source]#

Bases: AstroPhotError

Raised when the data provided to an image is invalid or cannot be processed.

exception astrophot.errors.InvalidImage[source]#

Bases: AstroPhotError

Raised when an image object cannot be used as given.

exception astrophot.errors.InvalidTarget[source]#

Bases: AstroPhotError

Catches when a target object is assigned incorrectly.

exception astrophot.errors.InvalidWindow[source]#

Bases: AstroPhotError

Raised whenever a window is misspecified

exception astrophot.errors.OptimizeStopFail[source]#

Bases: AstroPhotError

Raised at any point to stop optimization process due to failure.

exception astrophot.errors.OptimizeStopSuccess[source]#

Bases: AstroPhotError

Raised at any point to stop optimization process due to success condition.

exception astrophot.errors.SpecificationConflict[source]#

Bases: AstroPhotError

Raised when the inputs to an object are conflicting and/or ambiguous

exception astrophot.errors.UnrecognizedModel[source]#

Bases: AstroPhotError

Raised when the user tries to invoke a model that does not exist.