Ejemplo n.º 1
0
class MARIReductionFromWorkspace(ISISDirectInelasticReduction):
    def __init__(self):
        ISISDirectInelasticReduction.__init__(self)

        from ISIS_MariReduction import ReduceMARIFromWorkspace

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

        self.scale_to_fix_abf = 1.

    def runTest(self):
        """Defines the workflow for the test"""
        #pylint: disable=unused-variable
        outWS = self.red.reduce()
        # temporary fix to account for different monovan integral
        outWS *= self.scale_to_fix_abf

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

    def get_reference_file(self):
        return "MARIReduction.nxs"
class MARIReductionFromWorkspace(ISISDirectInelasticReduction):

    def __init__(self):
        ISISDirectInelasticReduction.__init__(self)

        from ISIS_MariReduction import ReduceMARIFromWorkspace

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

        self.scale_to_fix_abf = 1.


    def runTest(self):
        """Defines the workflow for the test"""
        #pylint: disable=unused-variable
        outWS=self.red.reduce()
        # temporary fix to account for different monovan integral
        outWS*=self.scale_to_fix_abf


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

    def get_reference_file(self):
        return "MARIReduction.nxs"
Ejemplo n.º 3
0
    def __init__(self):
        ISISDirectInelasticReduction.__init__(self)

        from ISIS_MariReduction import ReduceMARIFromWorkspace

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

        self.scale_to_fix_abf = 1.
    def __init__(self):
        ISISDirectInelasticReduction.__init__(self)

        from ISIS_MariReduction import ReduceMARIFromWorkspace

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

        self.scale_to_fix_abf = 1.