From 0b532b7b4b7d1e43381e08c451dd7fe7c56a9ec3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Schl=C3=BCter?= <30903175+fschlueter@users.noreply.github.com> Date: Tue, 19 Nov 2024 14:18:25 +0100 Subject: [PATCH] Update detector_base.py: Fix astropy deprecation warning 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] ``` --- NuRadioReco/detector/detector_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NuRadioReco/detector/detector_base.py b/NuRadioReco/detector/detector_base.py index 68ddeca30..dcc93488a 100644 --- a/NuRadioReco/detector/detector_base.py +++ b/NuRadioReco/detector/detector_base.py @@ -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')