parameters: (self)
docstring: Returns the efixed value relating to the specified workspace
docstring_summary: Returns the efixed value relating to the specified workspace
docstring_tokens: Returns the efixed value relating to the specified workspace
function: def _get_efixed(self):
          """
          Returns the efixed value relating to the specified workspace
          """
          inst = self._input_ws.getInstrument()
  
          if inst.hasParameter('Efixed'):
              return inst.getNumberParameter('Efixed')[0]
  
          if inst.hasParameter('analyser'):
              analyser_comp = inst.getComponentByName(inst.getStringParameter('analyser')[0])
  
              if analyser_comp is not None and analyser_comp.hasParameter('Efixed'):
                  return analyser_comp.getNumberParameter('EFixed')[0]
  
          # Direct instruments don't use the Efixed instrument parameter
          # The GetEi algorithm calculates and saves the Ei value to this sample log
          if self._input_ws.run().hasProperty('Ei'):
              return  self._input_ws.getRun().getProperty('Ei').value
  
          raise ValueError('No Efixed parameter found')
function_tokens: def _get_efixed ( self ) : inst = self . _input_ws . getInstrument ( ) if inst . hasParameter ( 'Efixed' ) : return inst . getNumberParameter ( 'Efixed' ) [ 0 ] if inst . hasParameter ( 'analyser' ) : analyser_comp = inst . getComponentByName ( inst . getStringParameter ( 'analyser' ) [ 0 ] ) if analyser_comp is not None and analyser_comp . hasParameter ( 'Efixed' ) : return analyser_comp . getNumberParameter ( 'EFixed' ) [ 0 ] # Direct instruments don't use the Efixed instrument parameter # The GetEi algorithm calculates and saves the Ei value to this sample log if self . _input_ws . run ( ) . hasProperty ( 'Ei' ) : return self . _input_ws . getRun ( ) . getProperty ( 'Ei' ) . value raise ValueError ( 'No Efixed parameter found' )