Skip to content
Snippets Groups Projects
Commit a4c89d8f authored by David Fairbrother's avatar David Fairbrother
Browse files

Re #18643 Fixed an issue with a deleted workspace being deleted again

parent 7bd5e1d0
No related merge requests found
......@@ -116,8 +116,8 @@ def generate_run_numbers(run_number_string):
:return: A list of run numbers generated from the string
"""
# Check its not a single run
if isinstance(run_number_string, int) and run_number_string.isdigit():
return [int(run_number_string)] # Cast into a list and return
if isinstance(run_number_string, int):
return [int(run_number_string)] # Cast into a list and return
# If its a string we must parse it
run_number_string = run_number_string.strip()
......
......@@ -47,15 +47,15 @@ def _focus_one_ws(ws, run_number, instrument, perform_vanadium_norm):
common.remove_intermediate_workspace(input_workspace)
common.remove_intermediate_workspace(aligned_ws)
common.remove_intermediate_workspace(focused_ws)
common.remove_intermediate_workspace(calibrated_spectra)
common.remove_intermediate_workspace(cropped_spectra)
return processed_nexus_files
def _apply_vanadium_corrections(instrument, run_number, input_workspace, perform_vanadium_norm):
run_details = instrument._get_run_details(run_number_string=run_number)
converted_ws = mantid.ConvertUnits(InputWorkspace=input_workspace, OutputWorkspace=input_workspace, Target="TOF")
split_data_spectra = common.extract_ws_spectra(converted_ws)
input_workspace = mantid.ConvertUnits(InputWorkspace=input_workspace, OutputWorkspace=input_workspace, Target="TOF")
split_data_spectra = common.extract_ws_spectra(input_workspace)
if perform_vanadium_norm:
processed_spectra = _divide_by_vanadium_splines(spectra_list=split_data_spectra,
......
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