Skip to content

Commit

Permalink
Update detector_base.py: Fix astropy deprecation warning
Browse files Browse the repository at this point in the history
Fix:
```
WARNING: AstropyDeprecationWarning: Importing ErfaWarning from astropy.utils.exceptions was deprecated in version 6.1 and will stop working in a future version. Instead, please use
from erfa import ErfaWarning

 [astropy.utils.exceptions]
```
  • Loading branch information
fschlueter authored Nov 19, 2024
1 parent 4444a45 commit 0b532b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NuRadioReco/detector/detector_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from tinydb_serialization import Serializer
import six # # used for compatibility between py2 and py3
import warnings
from astropy.utils.exceptions import ErfaWarning
from erfa import ErfaWarning
import NuRadioReco.utilities.metaclasses

logger = logging.getLogger('NuRadioReco.detector')
Expand Down

0 comments on commit 0b532b7

Please sign in to comment.