-
Notifications
You must be signed in to change notification settings - Fork 122
/
StepScan.py
22 lines (18 loc) · 936 Bytes
/
StepScan.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
#pylint: disable=no-init
import systemtesting
from mantid.simpleapi import *
class StepScanWorkflowAlgorithm(systemtesting.MantidSystemTest):
'''Tests the StepScan workflow algorithm'''
def runTest(self):
LoadMask(Instrument='HYS',InputFile=r'HYSA_mask.xml',OutputWorkspace='HYSA_mask')
Load(Filename='HYSA_2934.nxs.h5',OutputWorkspace='HYSA_2934',LoadMonitors='1')
StepScan(InputWorkspace='HYSA_2934',OutputWorkspace='StepScan',MaskWorkspace='HYSA_mask',
XMin='3.25',XMax='3.75',RangeUnit='dSpacing')
def validate(self):
return 'StepScan','StepScan.nxs'