Skip to content
Snippets Groups Projects
LOQReductionGUI.py 1.04 KiB
Newer Older
Dan Nixon's avatar
Dan Nixon committed
#pylint: disable=attribute-defined-outside-init

from __future__ import (absolute_import, division, print_function)
import stresstesting
from mantid.simpleapi import *
import ISISCommandInterface as i

MASKFILE = FileFinder.getFullPath('MaskLOQData.txt')
BATCHFILE = FileFinder.getFullPath('loq_batch_mode_reduction.csv')

class LOQMinimalBatchReduction(stresstesting.MantidStressTest):
    def __init__(self):
        super(LOQMinimalBatchReduction, self).__init__()
        config['default.instrument'] = 'LOQ'

    def runTest(self):
        import SANSBatchMode as batch
        i.LOQ()
        i.MaskFile(MASKFILE)
        batch.BatchReduce(BATCHFILE, '.nxs', combineDet='merged', saveAlgs={})
WHITFIELDRE email's avatar
WHITFIELDRE email committed
        # note increased tolerance to something which quite high
        # this is partly a temperary measure, but also justified by
        # when overlaying the two options they overlap very well
        self.tolerance = 1.0e+1
        self.disableChecking.append('Instrument')
        return 'first_time_merged', 'LOQReductionMergedData.nxs'