From afc01bff4515c1fcb5ddd7b6c2707efdc28a00a4 Mon Sep 17 00:00:00 2001 From: Hiroki Yoneda Date: Mon, 29 Jul 2024 14:21:42 +0200 Subject: [PATCH] Use DeprecationWarning instead of logger.warning for DataIF_COSI_DC2._modify_axes() --- cosipy/image_deconvolution/dataIF_COSI_DC2.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cosipy/image_deconvolution/dataIF_COSI_DC2.py b/cosipy/image_deconvolution/dataIF_COSI_DC2.py index 8b2b326a..eb6ff7a3 100644 --- a/cosipy/image_deconvolution/dataIF_COSI_DC2.py +++ b/cosipy/image_deconvolution/dataIF_COSI_DC2.py @@ -5,6 +5,8 @@ import logging logger = logging.getLogger(__name__) +import warnings + from histpy import Histogram, Axes from cosipy.response import FullDetectorResponse @@ -100,7 +102,7 @@ def _modify_axes(self): Modify the axes of data. This method will be removed in the future. """ - logger.warning("Note that _modify_axes() in DataIF_COSI_DC2 was implemented for a temporary use. It will be removed in the future.") + warnings.warn("Note that _modify_axes() in DataIF_COSI_DC2 was implemented for a temporary use. It will be removed in the future.", DeprecationWarning) if self._coordsys_conv_matrix is None: axis_name = ['Em', 'Phi', 'PsiChi']