Example #1
0
class MERLINReduction(ISISDirectInelasticReduction):
    def requiredMemoryMB(self):
        """Far too slow for managed workspaces. They're tested in other places. Requires 16Gb"""
        return 16000

    def __init__(self):
        ''' Test relies on MERLIN_Parameters.xml file introduced in July 2014
        '''
        ISISDirectInelasticReduction.__init__(self)

        from ISIS_MERLINReduction import ReduceMERLIN

        self.red = ReduceMERLIN()
        self.red.def_advanced_properties()
        self.red.def_main_properties()

    def runTest(self):
        #pylint: disable=unused-variable
        outWS = self.red.reduce()

    def get_reference_file(self):
        return "MERLINReduction.nxs"

    def get_result_workspace(self):
        """Returns the result workspace to be checked"""
        return "outWS"

    def validate(self):
        self.tolerance = 1e-6
        self.tolerance_is_reller = True
        self.disableChecking.append('SpectraMap')
        self.disableChecking.append('Instrument')
        result = self.get_result_workspace()
        reference = self.get_reference_file()
        return result, reference
class MERLINReduction(ISISDirectInelasticReduction):

    def requiredMemoryMB(self):
        """Far too slow for managed workspaces. They're tested in other places. Requires 16Gb"""
        return 16000

    def __init__(self):
        ''' Test relies on MERLIN_Parameters.xml file introduced in July 2014
        '''
        ISISDirectInelasticReduction.__init__(self)

        from ISIS_MERLINReduction import ReduceMERLIN

        self.red = ReduceMERLIN()
        self.red.def_advanced_properties()
        self.red.def_main_properties()

    def runTest(self):
        #pylint: disable=unused-variable
        outWS = self.red.reduce()

    def get_reference_file(self):
        return "MERLINReduction.nxs"
    def get_result_workspace(self):
        """Returns the result workspace to be checked"""
        return "outWS"

    def validate(self):
        self.tolerance = 1e-6
        self.tolerance_is_reller=True
        self.disableChecking.append('SpectraMap')
        self.disableChecking.append('Instrument')
        result = self.get_result_workspace()
        reference = self.get_reference_file()
        return result, reference
Example #3
0
    def __init__(self):
        ''' Test relies on MERLIN_Parameters.xml file introduced in July 2014
        '''
        ISISDirectInelasticReduction.__init__(self)

        from ISIS_MERLINReduction import ReduceMERLIN

        self.red = ReduceMERLIN()
        self.red.def_advanced_properties()
        self.red.def_main_properties()
    def __init__(self):
        ''' Test relies on MERLIN_Parameters.xml file introduced in July 2014
        '''
        ISISDirectInelasticReduction.__init__(self)

        from ISIS_MERLINReduction import ReduceMERLIN

        self.red = ReduceMERLIN()
        self.red.def_advanced_properties()
        self.red.def_main_properties()