parameters: (self, ws)
docstring: Performs the dead time correction
              @param ws : the input workspace
docstring_summary: Performs the dead time correction
docstring_tokens: Performs the dead time correction
function: def _apply_dead_time(self, ws):
          """
              Performs the dead time correction
              @param ws : the input workspace
          """
  
          instrument = mtd[ws].getInstrument()
          if instrument.hasParameter('tau'):
              tau = instrument.getNumberParameter('tau')[0]
              if self._instrument == 'D33' or self._instrument == 'D11B':
                  grouping_filename = self._instrument + '_Grouping.xml'
                  grouping_file = os.path.join(config['groupingFiles.directory'], grouping_filename)
                  DeadTimeCorrection(InputWorkspace=ws, Tau=tau, MapFile=grouping_file, OutputWorkspace=ws)
              elif instrument.hasParameter('grouping'):
                  pattern = instrument.getStringParameter('grouping')[0]
                  DeadTimeCorrection(InputWorkspace=ws, Tau=tau, GroupingPattern=pattern, OutputWorkspace=ws)
              else:
                  self.log().warning('No grouping available in IPF, dead time correction will be performed detector-wise.')
                  DeadTimeCorrection(InputWorkspace=ws, Tau=tau, OutputWorkspace=ws)
          else:
              self.log().information('No tau available in IPF, skipping dead time correction.')
function_tokens: def _apply_dead_time ( self , ws ) : instrument = mtd [ ws ] . getInstrument ( ) if instrument . hasParameter ( 'tau' ) : tau = instrument . getNumberParameter ( 'tau' ) [ 0 ] if self . _instrument == 'D33' or self . _instrument == 'D11B' : grouping_filename = self . _instrument + '_Grouping.xml' grouping_file = os . path . join ( config [ 'groupingFiles.directory' ] , grouping_filename ) DeadTimeCorrection ( InputWorkspace = ws , Tau = tau , MapFile = grouping_file , OutputWorkspace = ws ) elif instrument . hasParameter ( 'grouping' ) : pattern = instrument . getStringParameter ( 'grouping' ) [ 0 ] DeadTimeCorrection ( InputWorkspace = ws , Tau = tau , GroupingPattern = pattern , OutputWorkspace = ws ) else : self . log ( ) . warning ( 'No grouping available in IPF, dead time correction will be performed detector-wise.' ) DeadTimeCorrection ( InputWorkspace = ws , Tau = tau , OutputWorkspace = ws ) else : self . log ( ) . information ( 'No tau available in IPF, skipping dead time correction.' )