From 4526072820cd35d2481f3ab0a1a440928b8836eb Mon Sep 17 00:00:00 2001 From: Steve Williams <stephen.williams@stfc.ac.uk> Date: Thu, 10 Jun 2010 11:01:21 +0000 Subject: [PATCH] In the centre finder the sample workspace was being deleted before it was needed by the can processing re #1285 --- Code/Mantid/PythonAPI/scripts/SANS/SANSReduction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Mantid/PythonAPI/scripts/SANS/SANSReduction.py b/Code/Mantid/PythonAPI/scripts/SANS/SANSReduction.py index de6fecfbfc1..42fdd248f7c 100644 --- a/Code/Mantid/PythonAPI/scripts/SANS/SANSReduction.py +++ b/Code/Mantid/PythonAPI/scripts/SANS/SANSReduction.py @@ -1283,6 +1283,7 @@ def WavRangeReduction(wav_start = None, wav_end = None, use_def_trans = DefaultT else: mantid.deleteWorkspace(tmp_smp) mantid.deleteWorkspace(tmp_can) + mantid.deleteWorkspace(final_workspace) # Crop Workspace to remove leading and trailing zeroes if finding_centre == False: @@ -1626,7 +1627,6 @@ def GroupIntoQuadrants(reduced_ws, final_result, xcentre, ycentre, q_bins): CreateQuadrant(reduced_ws, final_result, q, xcentre, ycentre, q_bins, final_result + '_' + str(counter)) # We don't need these now - mantid.deleteWorkspace(final_result) mantid.deleteWorkspace(reduced_ws) # Calcluate the sum squared difference of the given workspaces. This assumes that a workspace with -- GitLab