-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a timelimit context handler, eye towards BANE deadlocks (#200)
* added a timelimit context manager * expanded test * added a list for collections cast * added to changelog * fixed a test --------- Co-authored-by: tgalvin <[email protected]>
- Loading branch information
Showing
7 changed files
with
110 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,42 @@ | ||
class MSError(Exception): | ||
class FlintException(Exception): | ||
"""Base exception for Flint""" | ||
|
||
pass | ||
|
||
|
||
class TimeLimitException(FlintException): | ||
"""A function has taken too long to execute""" | ||
|
||
pass | ||
|
||
|
||
class MSError(FlintException): | ||
"""An error for MS related things""" | ||
|
||
pass | ||
|
||
|
||
class FrequencyMismatchError(Exception): | ||
class FrequencyMismatchError(FlintException): | ||
"""Raised when there are differences in frequencies""" | ||
|
||
|
||
class PhaseOutlierFitError(Exception): | ||
class PhaseOutlierFitError(FlintException): | ||
"""Raised when the phase outlier fit routine fails.""" | ||
|
||
pass | ||
|
||
|
||
class GainCalError(Exception): | ||
class GainCalError(FlintException): | ||
"""Raised when it appears like the casa gaincal task fails.""" | ||
|
||
pass | ||
|
||
|
||
class CleanDivergenceError(Exception): | ||
class CleanDivergenceError(FlintException): | ||
"""Raised if it is detected that cleaning has diverged.""" | ||
|
||
pass | ||
|
||
|
||
class TarArchiveError(Exception): | ||
class TarArchiveError(FlintException): | ||
"""Raised it the flint tarball is not created successfullty""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters