Skip to content
Snippets Groups Projects
Commit 45260728 authored by Steve Williams's avatar Steve Williams
Browse files

In the centre finder the sample workspace was being deleted before it was...

In the centre finder the sample workspace was being deleted before it was needed by the can processing re #1285
parent 4e15ef25
No related branches found
No related tags found
No related merge requests found
...@@ -1283,6 +1283,7 @@ def WavRangeReduction(wav_start = None, wav_end = None, use_def_trans = DefaultT ...@@ -1283,6 +1283,7 @@ def WavRangeReduction(wav_start = None, wav_end = None, use_def_trans = DefaultT
else: else:
mantid.deleteWorkspace(tmp_smp) mantid.deleteWorkspace(tmp_smp)
mantid.deleteWorkspace(tmp_can) mantid.deleteWorkspace(tmp_can)
mantid.deleteWorkspace(final_workspace)
# Crop Workspace to remove leading and trailing zeroes # Crop Workspace to remove leading and trailing zeroes
if finding_centre == False: if finding_centre == False:
...@@ -1626,7 +1627,6 @@ def GroupIntoQuadrants(reduced_ws, final_result, xcentre, ycentre, q_bins): ...@@ -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)) CreateQuadrant(reduced_ws, final_result, q, xcentre, ycentre, q_bins, final_result + '_' + str(counter))
# We don't need these now # We don't need these now
mantid.deleteWorkspace(final_result)
mantid.deleteWorkspace(reduced_ws) mantid.deleteWorkspace(reduced_ws)
# Calcluate the sum squared difference of the given workspaces. This assumes that a workspace with # Calcluate the sum squared difference of the given workspaces. This assumes that a workspace with
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment