Example #1
0
    def __init__(self):
        # pylint: disable=super-on-old-class
        super(ISISReducer, self).__init__()
        self.output_wksp = None
        self.full_trans_wav = False
        self._monitor_set = False
        # workspaces that this reducer uses and will delete at the end
        self._temporys = {}
        # the output workspaces created by a data analysis
        self._outputs = {}
        # all workspaces created by this reducer
        self._workspace = [self._temporys, self._outputs]

        self._clean_loaded_data()
        self._init_steps()

        # process the background (can) run instead of the sample
        self._process_can = False
        # option to indicate if wide_angle_correction will be applied.
        self.wide_angle_correction = False
        # Due to the way that ISISReducer is used to the reduction of the Can
        # creating a new copy of ISISReducer through the SingleTon interface, we have
        # to add this two attributes __transmission_sample and __transmission_can
        # to keep the values of the __transmission workspaces generated on the reduction.
        # register the value of transmission of sample
        self.__transmission_sample = ""
        # register the value of transmission can
        self.__transmission_can = ""

        self.settings = get_settings_object()

        # Dark Run Subtraction handler. This is not a step but a utility class
        # which gets used during cropping and Tranmission calculation
        self.dark_run_subtraction = isis_reduction_steps.DarkRunSubtraction()
Example #2
0
    def __init__(self):
        super(ISISReducer, self).__init__()
        self.output_wksp = None
        self.full_trans_wav = False
        self._monitor_set = False
        #workspaces that this reducer uses and will delete at the end
        self._temporys = {}
        #the output workspaces created by a data analysis
        self._outputs = {}
        #all workspaces created by this reducer
        self._workspace = [self._temporys, self._outputs]

        self._clean_loaded_data()
        self._init_steps()

        #process the background (can) run instead of the sample
        self._process_can = False
        #option to indicate if wide_angle_correction will be applied.
        self.wide_angle_correction = False
        # Due to the way that ISISReducer is used to the reduction of the Can
        # creating a new copy of ISISReducer through the SingleTon interface, we have
        # to add this two attributes __transmission_sample and __transmission_can
        # to keep the values of the __transmission workspaces generated on the reduction.
        # register the value of transmission of sample
        self.__transmission_sample = ""
        # register the value of transmission can
        self.__transmission_can = ""

        self.settings = get_settings_object()
Example #3
0
    def __init__(self):
        super(ISISReducer, self).__init__()
        self.output_wksp = None
        self.full_trans_wav = False
        self._monitor_set = False
        #workspaces that this reducer uses and will delete at the end
        self._temporys = {}
        #the output workspaces created by a data analysis
        self._outputs = {}
        #all workspaces created by this reducer
        self._workspace = [self._temporys, self._outputs]

        self._clean_loaded_data()
        self._init_steps()

        #process the background (can) run instead of the sample
        self._process_can = False
        #option to indicate if wide_angle_correction will be applied.
        self.wide_angle_correction = False
        # Due to the way that ISISReducer is used to the reduction of the Can
        # creating a new copy of ISISReducer through the SingleTon interface, we have
        # to add this two attributes __transmission_sample and __transmission_can
        # to keep the values of the __transmission workspaces generated on the reduction.
        # register the value of transmission of sample
        self.__transmission_sample = ""
        # register the value of transmission can
        self.__transmission_can = ""

        self.settings = get_settings_object()
Example #4
0
    def __init__(self):
        # pylint: disable=super-on-old-class
        super(ISISReducer, self).__init__()
        self.output_wksp = None
        self.full_trans_wav = False
        self._monitor_set = False
        # workspaces that this reducer uses and will delete at the end
        self._temporys = {}
        # the output workspaces created by a data analysis
        self._outputs = {}
        # all workspaces created by this reducer
        self._workspace = [self._temporys, self._outputs]

        self._clean_loaded_data()
        self._init_steps()

        # process the background (can) run instead of the sample
        self._process_can = False
        # option to indicate if wide_angle_correction will be applied.
        self.wide_angle_correction = False
        # Due to the way that ISISReducer is used to the reduction of the Can
        # creating a new copy of ISISReducer through the SingleTon interface, we have
        # to add this two attributes __transmission_sample and __transmission_can
        # to keep the values of the __transmission workspaces generated on the reduction.
        # register the value of transmission of sample
        self.__transmission_sample = ""
        # register the value of transmission can
        self.__transmission_can = ""

        self.settings = get_settings_object()

        # Dark Run Subtraction handler. This is not a step but a utility class
        # which gets used during cropping and Tranmission calculation
        self.dark_run_subtraction = isis_reduction_steps.DarkRunSubtraction()