diff --git a/Testing/SystemTests/tests/analysis/ISISReflectometryAutoreductionTest.py b/Testing/SystemTests/tests/analysis/ISISReflectometryAutoreductionTest.py index a032295b3cdff780fde76655e201ab387f34e6f8..a3feff9f2a78934c45a751cffcdd1c87c15cccbc 100644 --- a/Testing/SystemTests/tests/analysis/ISISReflectometryAutoreductionTest.py +++ b/Testing/SystemTests/tests/analysis/ISISReflectometryAutoreductionTest.py @@ -3,7 +3,6 @@ System Test for ISIS Reflectometry autoreduction Adapted from scripts provided by Max Skoda. """ import re -import string import itertools import math import stresstesting @@ -270,7 +269,7 @@ def AutoReduce(transRun=[], runRange=[], oldList=[]): for item in sample: runno = item[0] angle = item[1] - runnos = string.split(runno, '+') + runnos = runno.split('+') # check if runs have been added together runnos = [int(i) for i in runnos] @@ -330,11 +329,9 @@ def AutoReduce(transRun=[], runRange=[], oldList=[]): # print(Qmin, Qmax, dqq) # print(overlapHigh) if len(wq_list) > 1: - outputwksp = string.split(wq_list[0], sep='_')[ - 0] + '_' + string.split(wq_list[-1], sep='_')[0][3:] + outputwksp = wq_list[0].split('_')[0] + '_' + wq_list[-1].split('_')[0][3:] else: - outputwksp = string.split( - wq_list[0], sep='_')[0] + '_IvsQ_binned' + outputwksp = wq_list[0].split('_')[0] + '_IvsQ_binned' if not mtd.doesExist(outputwksp): combineDataMulti(