Ejemplo n.º 1
0
 def set_instrument(self, configuration):
     """
         Sets the instrument and put in the default beam center (usually the
         center of the detector)
         @param configuration: instrument object
     """
     super(SANSReducer, self).set_instrument(configuration)
     center = self.instrument.get_default_beam_center()
     self._beam_finder = sans_reduction_steps.BaseBeamFinder(center[0], center[1])
Ejemplo n.º 2
0
    def __init__(self):
        super(SANSReducer, self).__init__()

        # Default beam finder
        self._beam_finder = sans_reduction_steps.BaseBeamFinder()

        # Default normalization
        self._normalizer = None

        # Default data loader
        self._data_loader = None

        # Default mask object
        self._mask = sans_reduction_steps.Mask()

        # Default dark current subtracter class
        self._dark_current_subtracter_class = api.HFIRDarkCurrentSubtraction

        # Resolution calculator
        self._resolution_calculator = api.ReactorSANSResolution

        # Sample geometry correction
        self.geometry_correcter = None