This GitLab instance is undergoing maintenance and is operating in read-only mode.

You are on a read-only GitLab instance.
Commit d952051d authored by Zhou, Wenduo's avatar Zhou, Wenduo
Browse files

Deprecate CalibrateRectangularDetectors.

parent d6d172dc
......@@ -15,6 +15,9 @@ from mantid.kernel import Direction
COMPRESS_TOL_TOF = .01
EXTENSIONS_NXS = ["_event.nxs", ".nxs.h5"]
DEPRECATION_NOTICE = """CalibrateRectangularDetectors is deprecated from v6.3.0.
Instead, use PDCalibration."""
def getBasename(filename):
name = os.path.split(filename)[-1]
......@@ -62,8 +65,11 @@ class CalibrateRectangularDetectors(PythonAlgorithm):
def name(self):
return "CalibrateRectangularDetectors"
# def summary(self):
# return "Calibrate the detector pixels and write a calibration file"
@classmethod
def summary(self):
return "Calibrate the detector pixels and write a calibration file"
return DEPRECATION_NOTICE
def PyInit(self):
self.declareProperty(MultipleFileProperty(name="RunNumber",
......@@ -423,6 +429,10 @@ class CalibrateRectangularDetectors(PythonAlgorithm):
#pylint: disable=too-many-branches
def PyExec(self):
# Exit with deprecation notice
self.log().error(DEPRECATION_NOTICE)
# get generic information
self._binning = self.getProperty("Binning").value
if len(self._binning) != 1 and len(self._binning) != 3:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment