Skip to content

Commit

Permalink
Use DeprecationWarning instead of logger.warning for DataIF_COSI_DC2.…
Browse files Browse the repository at this point in the history
…_modify_axes()
  • Loading branch information
hiyoneda committed Jul 29, 2024
1 parent 4f637d6 commit afc01bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cosipy/image_deconvolution/dataIF_COSI_DC2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import logging
logger = logging.getLogger(__name__)

import warnings

from histpy import Histogram, Axes

from cosipy.response import FullDetectorResponse
Expand Down Expand Up @@ -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']
Expand Down

0 comments on commit afc01bf

Please sign in to comment.