parameters: (self)
docstring: Gets algorithm properties.
docstring_summary: Gets algorithm properties.
docstring_tokens: Gets algorithm properties .
function: def _setup(self):
          """
          Gets algorithm properties.
          """
          self._output_ws = self.getPropertyValue('OutputWorkspace')
          self._data_files = self.getProperty('InputFiles').value
          self._container_data_files = self.getProperty('ContainerFiles').value
          self._cal_file = self.getProperty('CalFile').value
          self._par_filename = self.getPropertyValue('InstrumentParFile')
          self._vanadium_runs = self.getProperty('VanadiumFiles').value
          self._container_scale_factor = self.getProperty('ContainerScaleFactor').value
          self._load_logs = self.getProperty('LoadLogFiles').value
          self._instrument_name = self.getPropertyValue('Instrument')
          self._mode = self.getPropertyValue('Mode')
          self._spectra_range = self.getProperty('SpectraRange').value
          self._rebin_string = self.getPropertyValue('RebinParam')
          self._grouping_method = self.getPropertyValue('GroupingPolicy')
          grouping_ws_name = self.getPropertyValue("GroupingWorkspace")
          self._grouping_workspace = mtd[grouping_ws_name] if grouping_ws_name else None
  
          if self._rebin_string == '':
              self._rebin_string = None
  
          self._container_workspace = None
          if len(self._container_data_files) == 0:
              self._container_data_files = None
  
          self._vanadium_ws = None
          if len(self._vanadium_runs) == 0:
              self._vanadium_runs = None
  
          # Get the IPF filename
          self._ipf_filename = self._instrument_name + '_diffraction_' + self._mode + '_Parameters.xml'
          if not os.path.exists(self._ipf_filename):
              self._ipf_filename = os.path.join(config['instrumentDefinition.directory'], self._ipf_filename)
          logger.information('IPF filename is: %s' % self._ipf_filename)
  
          if len(self._data_files) == 1:
              logger.warning('SumFiles options has no effect when only one file is provided')
          # Only enable sum files if we actually have more than one file
          self._sum_files = self.getProperty('SumFiles').value
function_tokens: def _setup ( self ) : self . _output_ws = self . getPropertyValue ( 'OutputWorkspace' ) self . _data_files = self . getProperty ( 'InputFiles' ) . value self . _container_data_files = self . getProperty ( 'ContainerFiles' ) . value self . _cal_file = self . getProperty ( 'CalFile' ) . value self . _par_filename = self . getPropertyValue ( 'InstrumentParFile' ) self . _vanadium_runs = self . getProperty ( 'VanadiumFiles' ) . value self . _container_scale_factor = self . getProperty ( 'ContainerScaleFactor' ) . value self . _load_logs = self . getProperty ( 'LoadLogFiles' ) . value self . _instrument_name = self . getPropertyValue ( 'Instrument' ) self . _mode = self . getPropertyValue ( 'Mode' ) self . _spectra_range = self . getProperty ( 'SpectraRange' ) . value self . _rebin_string = self . getPropertyValue ( 'RebinParam' ) self . _grouping_method = self . getPropertyValue ( 'GroupingPolicy' ) grouping_ws_name = self . getPropertyValue ( "GroupingWorkspace" ) self . _grouping_workspace = mtd [ grouping_ws_name ] if grouping_ws_name else None if self . _rebin_string == '' : self . _rebin_string = None self . _container_workspace = None if len ( self . _container_data_files ) == 0 : self . _container_data_files = None self . _vanadium_ws = None if len ( self . _vanadium_runs ) == 0 : self . _vanadium_runs = None # Get the IPF filename self . _ipf_filename = self . _instrument_name + '_diffraction_' + self . _mode + '_Parameters.xml' if not os . path . exists ( self . _ipf_filename ) : self . _ipf_filename = os . path . join ( config [ 'instrumentDefinition.directory' ] , self . _ipf_filename ) logger . information ( 'IPF filename is: %s' % self . _ipf_filename ) if len ( self . _data_files ) == 1 : logger . warning ( 'SumFiles options has no effect when only one file is provided' ) # Only enable sum files if we actually have more than one file self . _sum_files = self . getProperty ( 'SumFiles' ) . value