parameters: (self, xml_str)
docstring: Read in data from XML using the string representation of the setup algorithm used
              to prepare the reduction properties.
              @param xml_str: text to read the data from
docstring_summary: Read in data from XML using the string representation of the setup algorithm used
              to prepare the reduction properties.
docstring_tokens: Read in data from XML using the string representation of the setup algorithm used to prepare the reduction properties .
function: def from_setup_info(self, xml_str):
          """
              Read in data from XML using the string representation of the setup algorithm used
              to prepare the reduction properties.
              @param xml_str: text to read the data from
          """
          self.reset()
          super(ReductionOptions, self).from_setup_info(xml_str)
  
          (alg, _) = BaseScriptElement.getAlgorithmFromXML(xml_str)
          self.detector_offset = BaseScriptElement.getPropertyValue(
              alg, "SampleDetectorDistanceOffset", default=ReductionOptions.default_detector_offset)
          self.use_config_cutoff = BaseScriptElement.getPropertyValue(alg, "UseConfigTOFCuts",
                                                                      default=ReductionOptions.use_config_cutoff)
          self.correct_for_flight_path = BaseScriptElement.getPropertyValue(alg, "CorrectForFlightPath",
                                                                            default=ReductionOptions.correct_for_flight_path)
          self.low_TOF_cut = BaseScriptElement.getPropertyValue(alg, "LowTOFCut",
                                                                default=ReductionOptions.low_TOF_cut)
          self.high_TOF_cut = BaseScriptElement.getPropertyValue(alg, "HighTOFCut",
                                                                 default=ReductionOptions.high_TOF_cut)
          self.use_config_mask = BaseScriptElement.getPropertyValue(alg, "UseConfigMask",
                                                                    default=ReductionOptions.use_config_mask)
          self.compute_resolution = BaseScriptElement.getPropertyValue(alg, "ComputeResolution",
                                                                       default=ReductionOptions.compute_resolution)
          self.sample_aperture_diameter = BaseScriptElement.getPropertyValue(alg, "SampleApertureDiameter",
                                                                             default=ReductionOptions.sample_aperture_diameter)
          self.perform_TOF_correction = not BaseScriptElement.getPropertyValue(alg, "SkipTOFCorrection",
                                                                               default=False)
          norm_option = BaseScriptElement.getPropertyValue(alg, "Normalisation", default = 'Monitor')
          self.use_beam_monitor = norm_option=='Monitor'
          self.beam_monitor_reference = BaseScriptElement.getPropertyValue(alg, "MonitorReferenceFile",
                                                                           default=ReductionOptions.beam_monitor_reference)
function_tokens: def from_setup_info ( self , xml_str ) : self . reset ( ) super ( ReductionOptions , self ) . from_setup_info ( xml_str ) ( alg , _ ) = BaseScriptElement . getAlgorithmFromXML ( xml_str ) self . detector_offset = BaseScriptElement . getPropertyValue ( alg , "SampleDetectorDistanceOffset" , default = ReductionOptions . default_detector_offset ) self . use_config_cutoff = BaseScriptElement . getPropertyValue ( alg , "UseConfigTOFCuts" , default = ReductionOptions . use_config_cutoff ) self . correct_for_flight_path = BaseScriptElement . getPropertyValue ( alg , "CorrectForFlightPath" , default = ReductionOptions . correct_for_flight_path ) self . low_TOF_cut = BaseScriptElement . getPropertyValue ( alg , "LowTOFCut" , default = ReductionOptions . low_TOF_cut ) self . high_TOF_cut = BaseScriptElement . getPropertyValue ( alg , "HighTOFCut" , default = ReductionOptions . high_TOF_cut ) self . use_config_mask = BaseScriptElement . getPropertyValue ( alg , "UseConfigMask" , default = ReductionOptions . use_config_mask ) self . compute_resolution = BaseScriptElement . getPropertyValue ( alg , "ComputeResolution" , default = ReductionOptions . compute_resolution ) self . sample_aperture_diameter = BaseScriptElement . getPropertyValue ( alg , "SampleApertureDiameter" , default = ReductionOptions . sample_aperture_diameter ) self . perform_TOF_correction = not BaseScriptElement . getPropertyValue ( alg , "SkipTOFCorrection" , default = False ) norm_option = BaseScriptElement . getPropertyValue ( alg , "Normalisation" , default = 'Monitor' ) self . use_beam_monitor = norm_option == 'Monitor' self . beam_monitor_reference = BaseScriptElement . getPropertyValue ( alg , "MonitorReferenceFile" , default = ReductionOptions . beam_monitor_reference )