Skip to content

Commit

Permalink
expose logger in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kif authored Sep 28, 2024
1 parent 2506abb commit c80e96f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/pyFAI/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Project: Azimuthal integration
# https://github.com/silx-kit/pyFAI
#
# Copyright (C) 2012-2020 European Synchrotron Radiation Facility, Grenoble, France
# Copyright (C) 2012-2024 European Synchrotron Radiation Facility, Grenoble, France
#
# Principal author: Jérôme Kieffer (Jerome.Kieffer@ESRF.eu)
#
Expand All @@ -28,7 +28,7 @@

__author__ = "Jérôme Kieffer"
__license__ = "MIT"
__date__ = "18/12/2023"
__date__ = "28/09/2024"

import sys
import os
Expand All @@ -39,10 +39,10 @@
from .version import __date__ as date
from .version import version, version_info, hexversion, strictversion, citation, calc_hexversion

logger = logging.getLogger(__name__)
if sys.version_info < (3, 7):
logger = logging.getLogger(__name__)
logger.error("pyFAI required a python version >= 3.7")
raise RuntimeError("pyFAI required a python version >= 3.7, now we are running: %s" % sys.version)
raise RuntimeError(f"pyFAI required a python version >= 3.7, now we are running: {sys.version}")

from .utils import decorators

Expand Down

0 comments on commit c80e96f

Please sign in to comment.