dust_extinction icon indicating copy to clipboard operation
dust_extinction copied to clipboard

Add SpectralUnitsWarning for more targeted warning filters

Open lpsinger opened this issue 1 year ago • 3 comments

This makes it easier for users to disable the unit conversion warnings without also suppressing other unrelated UserWarnings.

This should be a backward-compatible change: since the new warning class subclasses UserWarning, code designed to suppress UserWarnings will still suppress this warning.

lpsinger avatar Sep 05 '24 15:09 lpsinger

Please add a description to this PR to describe in words the goal. Thanks.

karllark avatar Sep 05 '24 19:09 karllark

Please add a description to this PR to describe in words the goal. Thanks.

Done.

lpsinger avatar Sep 05 '24 19:09 lpsinger

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.89%. Comparing base (8871ed6) to head (412cbfc). Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #239   +/-   ##
=======================================
  Coverage   99.89%   99.89%           
=======================================
  Files           8        9    +1     
  Lines         935      938    +3     
=======================================
+ Hits          934      937    +3     
  Misses          1        1           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Sep 05 '24 19:09 codecov[bot]