Пример #1
0
class MARIReductionMonSeparate(ISISDirectInelasticReduction):
    def __init__(self):
        ISISDirectInelasticReduction.__init__(self)
        # This test has not been run properly so reference file is kind-of
        # arbitrary. It just checks that this reduction works.
        # Mari reduction masks are not correct for monitors loaded separately,
        # This explains all the difference encountered.
        from ISIS_MariReduction import ReduceMARIMonitorsSeparate

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

    def runTest(self):
        """Defines the workflow for the test"""

        # temporary fix cross-influence of tests for MARI. changes to nex ticket make this unnecessary
        PropertyManager.mono_correction_factor.set_cash_mono_run_number(None)
        #pylint: disable=unused-variable
        outWS = self.red.reduce()
        # temporary fix to account for different monovan integral
        #outWS*=0.997966051169129

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

    def get_reference_file(self):
        # monitor separate for MARI needs new maps and masks so, it is easier to redefine
        # reference file for the time being
        return "MARIReductionMonSeparate.nxs"
class MARIReductionMonSeparate(ISISDirectInelasticReduction):

    def __init__(self):
        ISISDirectInelasticReduction.__init__(self)
        # This test has not been run properly so reference file is kind-of
        # arbitrary. It just checks that this reduction works.
        # Mari reduction masks are not correct for monitors loaded separately,
        # This explains all the difference encountered.
        from ISIS_MariReduction import ReduceMARIMonitorsSeparate

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

    def runTest(self):
        """Defines the workflow for the test"""
        # temporary fix cross-influence of tests for MARI. changes to nex ticket make this unnecessary
        PropertyManager.mono_correction_factor.set_cash_mono_run_number(None)
        #pylint: disable=unused-variable
        outWS=self.red.reduce()
        # temporary fix to account for different monovan integral
        #outWS*=0.997966051169129


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

    def get_reference_file(self):
        # monitor separate for MARI needs new maps and masks so, it is easier to redefine
        # reference file for the time being
        return "MARIReductionMonSeparate.nxs"
Пример #3
0
    def __init__(self):
        ISISDirectInelasticReduction.__init__(self)
        # This test has not been run properly so reference file is kind-of
        # arbitrary. It just checks that this reduction works.
        # Mari reduction masks are not correct for monitors loaded separately,
        # This explains all the difference encountered.
        from ISIS_MariReduction import ReduceMARIMonitorsSeparate

        self.red = ReduceMARIMonitorsSeparate()
        self.red.def_advanced_properties()
        self.red.def_main_properties()
    def __init__(self):
        ISISDirectInelasticReduction.__init__(self)
        # This test has not been run properly so reference file is kind-of
        # arbitrary. It just checks that this reduction works.
        # Mari reduction masks are not correct for monitors loaded separately,
        # This explains all the difference encountered.
        from ISIS_MariReduction import ReduceMARIMonitorsSeparate

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