From d80ed4c0b215e261f5ac04590d82cbf13b228af1 Mon Sep 17 00:00:00 2001 From: Owen Arnold Date: Fri, 19 Dec 2014 08:52:27 +0000 Subject: [PATCH] refs #10693. Change warning message. --- .../plugins/algorithms/WorkflowAlgorithms/CutMD.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/CutMD.py b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/CutMD.py index 73841f96537d..711364fd8edc 100644 --- a/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/CutMD.py +++ b/Code/Mantid/Framework/PythonInterface/plugins/algorithms/WorkflowAlgorithms/CutMD.py @@ -182,10 +182,13 @@ def __verify_input_workspace(self, to_cut): # Try to sanity check the order of the dimensions. This is important. axes_check = self.getProperty("CheckAxes").value + + # Coordinate system message + restricted_coordinates_message = "Input Workspace should be in reciprocal lattice dimensions (HKL)" if axes_check: if not coord_system == SpecialCoordinateSystem.HKL: - raise ValueError("Input Workspace must be in reciprocal lattice dimensions (HKL)") + raise ValueError(restricted_coordinates_message) predicates = ["^(H.*)|(\\[H,0,0\\].*)$","^(K.*)|(\\[0,K,0\\].*)$","^(L.*)|(\\[0,0,L\\].*)$"] n_crystallographic_dims = __builtin__.min(3, ndims) @@ -194,6 +197,9 @@ def __verify_input_workspace(self, to_cut): p = re.compile(predicates[i]) if not p.match( dimension.getName() ): raise ValueError("Dimensions must be in order H, K, L") + else: + if not coord_system == SpecialCoordinateSystem.HKL: + logger.warning(restricted_coordinates_message) def __verify_projection_input(self, projection_table): if isinstance(projection_table, ITableWorkspace):