diff --git a/scripts/Engineering/EnggUtils.py b/scripts/Engineering/EnggUtils.py index 803fc2261dbf676bc9f6fbbf6adb2af52e7448a9..441f7f14a3647ce6962de1b2571915530bd2a57e 100644 --- a/scripts/Engineering/EnggUtils.py +++ b/scripts/Engineering/EnggUtils.py @@ -328,10 +328,9 @@ def crop_data(parent, ws, indices): @returns cropped workspace, with only the spectra corresponding to the indices requested """ # Leave only spectra between min and max - alg = parent.createChildAlgorithm('CropWorkspace') + alg = parent.createChildAlgorithm('ExtractSpectra') alg.setProperty('InputWorkspace', ws) - alg.setProperty('StartWorkspaceIndex', min(indices)) - alg.setProperty('EndWorkspaceIndex', max(indices)) + alg.setProperty('WorkspaceIndexList', indices) alg.execute() return alg.getProperty('OutputWorkspace').value