Skip to content

Adding option to re-raise error when loading a spectrum#66

Merged
dr-rodriguez merged 2 commits intoastrodbtoolkit:mainfrom
dr-rodriguez:spectra_error_handling
Feb 15, 2024
Merged

Adding option to re-raise error when loading a spectrum#66
dr-rodriguez merged 2 commits intoastrodbtoolkit:mainfrom
dr-rodriguez:spectra_error_handling

Conversation

@dr-rodriguez
Copy link
Collaborator

This is another implementation to allow one to re-raise an error when using load_spectrum
By default, raise_error=False for backwards compatibility and avoid issues, but when using load_spectrum manually, you can set that to True to capture the error messages.

@dr-rodriguez dr-rodriguez self-assigned this Feb 13, 2024
@dr-rodriguez dr-rodriguez requested a review from kelle February 13, 2024 21:34
@codecov
Copy link

codecov bot commented Feb 13, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (8b18a99) 94.37% compared to head (e81cfec) 94.74%.

Files Patch % Lines
astrodbkit2/spectra.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #66      +/-   ##
==========================================
+ Coverage   94.37%   94.74%   +0.36%     
==========================================
  Files           6        6              
  Lines         587      590       +3     
==========================================
+ Hits          554      559       +5     
+ Misses         33       31       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@kelle kelle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@dr-rodriguez dr-rodriguez merged commit 6b9530d into astrodbtoolkit:main Feb 15, 2024
@dr-rodriguez dr-rodriguez deleted the spectra_error_handling branch December 11, 2024 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants