From 8585f8b04607bbb5d18eb30d71d0cff834b0f5bd Mon Sep 17 00:00:00 2001 From: Sam Jenkins <s.jenkins@stfc.ac.uk> Date: Wed, 3 Oct 2018 14:06:23 +0100 Subject: [PATCH] Re #23690 Made requested change --- scripts/Diffraction/isis_powder/routines/focus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/Diffraction/isis_powder/routines/focus.py b/scripts/Diffraction/isis_powder/routines/focus.py index f3202bc55dd..2f7c96a4125 100644 --- a/scripts/Diffraction/isis_powder/routines/focus.py +++ b/scripts/Diffraction/isis_powder/routines/focus.py @@ -166,7 +166,7 @@ def _test_splined_vanadium_exists(instrument, run_details): " \nHave you run the method to create a Vanadium spline with these settings yet?\n") -def _crop_spline_to_percent_of_max(spline, input_ws, spectrum): +def _crop_spline_to_percent_of_max(spline, input_ws, output_workspace): spline_spectrum = spline.readY(0) y_val = numpy.amax(spline_spectrum) y_val = y_val / 100 @@ -174,5 +174,5 @@ def _crop_spline_to_percent_of_max(spline, input_ws, spectrum): small_spline_indecies = numpy.nonzero(spline_spectrum > y_val)[0] x_max = x_list[small_spline_indecies[-1]] x_min = x_list[small_spline_indecies[0]] - output = mantid.CropWorkspace(inputWorkspace=input_ws, XMin=x_min, XMax=x_max, OutputWorkspace=spectrum) + output = mantid.CropWorkspace(inputWorkspace=input_ws, XMin=x_min, XMax=x_max, OutputWorkspace=output_workspace) return output -- GitLab