parameters: (self)
docstring: Executes the data reduction workflow.
docstring_summary: Executes the data reduction workflow.
docstring_tokens: Executes the data reduction workflow .
function: def PyExec(self):
          """Executes the data reduction workflow."""
          progress = Progress(self, 0.0, 1.0, 4)
          self._subalgLogging = self.getProperty(common.PROP_SUBALG_LOGGING).value == common.SUBALG_LOGGING_ON
          wsNamePrefix = self.getProperty(common.PROP_OUTPUT_WS).valueAsStr
          cleanupMode = self.getProperty(common.PROP_CLEANUP_MODE).value
          self._names = utils.NameSource(wsNamePrefix, cleanupMode)
          self._cleanup = utils.Cleanup(cleanupMode, self._subalgLogging)
  
          progress.report('Loading inputs')
          mainWS = self._inputWS()
  
          # First subtract the background, then apply the absorption correction to sample
          progress.report('Subtracting EC')
          mainWS, subtracted = self._subtractEC(mainWS)
  
          progress.report('Applying self shielding corrections')
          mainWS, applied = self._applyCorrections(mainWS)
  
          if not applied and not subtracted:
              mainWS = self._cloneOnly(mainWS)
  
          self._finalize(mainWS)
          progress.report('Done')
function_tokens: def PyExec ( self ) : progress = Progress ( self , 0.0 , 1.0 , 4 ) self . _subalgLogging = self . getProperty ( common . PROP_SUBALG_LOGGING ) . value == common . SUBALG_LOGGING_ON wsNamePrefix = self . getProperty ( common . PROP_OUTPUT_WS ) . valueAsStr cleanupMode = self . getProperty ( common . PROP_CLEANUP_MODE ) . value self . _names = utils . NameSource ( wsNamePrefix , cleanupMode ) self . _cleanup = utils . Cleanup ( cleanupMode , self . _subalgLogging ) progress . report ( 'Loading inputs' ) mainWS = self . _inputWS ( ) # First subtract the background, then apply the absorption correction to sample progress . report ( 'Subtracting EC' ) mainWS , subtracted = self . _subtractEC ( mainWS ) progress . report ( 'Applying self shielding corrections' ) mainWS , applied = self . _applyCorrections ( mainWS ) if not applied and not subtracted : mainWS = self . _cloneOnly ( mainWS ) self . _finalize ( mainWS ) progress . report ( 'Done' )