Skip to content

Add exceptions module to PyLIMA #89

Description

@rachel3834

PyLIMA's internal error checking is really great for robust fitting but there are occasions when this causes a fit process to end prematurely. This is fine, but in these circumstances, it would be really helpful if PyLIMA had an exceptions module which could then be imported in to fitting pipelines to improve their handling of exceptional cases.

Here's an example of this use-case:

I have a wrapper code which uses PyLIMA to run automated modeling of a set of events. In a few rare cases, PyLIMA's functions for eliminating bad data in the input lightcurves results in one or more lightcurves that are empty. This causes pyLIMA to halt the model fit, rightly.
I would like to be able to import a PyLIMA exceptions model so that I can add a specific try-except clause to catch these cases, without having to make it so broad as to catch every exception, which would tend to mask other issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions