diff options
Diffstat (limited to 'silx/gui/widgets/MedianFilterDialog.py')
-rw-r--r-- | silx/gui/widgets/MedianFilterDialog.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/silx/gui/widgets/MedianFilterDialog.py b/silx/gui/widgets/MedianFilterDialog.py index 3eddff3..dd4a00d 100644 --- a/silx/gui/widgets/MedianFilterDialog.py +++ b/silx/gui/widgets/MedianFilterDialog.py @@ -1,7 +1,7 @@ # coding: utf-8 # /*########################################################################## # -# Copyright (c) 2017 European Synchrotron Radiation Facility +# Copyright (c) 2017-2018 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -35,8 +35,14 @@ __authors__ = ["H. Payno"] __license__ = "MIT" __date__ = "14/02/2017" + +import logging + from silx.gui import qt + +_logger = logging.getLogger(__name__) + class MedianFilterDialog(qt.QDialog): """QDialog window featuring a :class:`BackgroundWidget`""" sigFilterOptChanged = qt.Signal(int, bool) @@ -69,6 +75,6 @@ class MedianFilterDialog(qt.QDialog): def _filterOptionChanged(self): """Call back used when the filter values are changed""" if self._filterWidth.value()%2 == 0: - logging.warning('median filter only accept odd values') + _logger.warning('median filter only accept odd values') else: self.sigFilterOptChanged.emit(self._filterWidth.value(), self._filterOption.isChecked())
\ No newline at end of file |