parameters: (self, details, reducer)
docstring: Handle user commands of the type DET/RESCALE r and DET/RESCALE/FIT q1 q2
              which are used to scale+constant background shift front detector so that
              data from the front and rear detectors can be merged
  
              @param details: the contents of the line after DET/
              @param reducer: the object that contains all the settings
docstring_summary: Handle user commands of the type DET/RESCALE r and DET/RESCALE/FIT q1 q2
              which are used to scale+constant background shift front detector so that
              data from the front and rear detectors can be merged
docstring_tokens: Handle user commands of the type DET / RESCALE r and DET / RESCALE / FIT q1 q2 which are used to scale + constant background shift front detector so that data from the front and rear detectors can be merged
function: def _readFrontRescaleShiftSetup(self, details, reducer):
          """
              Handle user commands of the type DET/RESCALE r and DET/RESCALE/FIT q1 q2
              which are used to scale+constant background shift front detector so that
              data from the front and rear detectors can be merged
  
              @param details: the contents of the line after DET/
              @param reducer: the object that contains all the settings
          """
          values = details.split()
          rAnds = reducer.instrument.getDetector('FRONT').rescaleAndShift
          rAnds.qRangeUserSelected = False
          if details.startswith('RESCALE'):
              if 'FIT' in details:
                  if len(values) == 1:
                      rAnds.fitScale = True
                  elif len(values) == 3:
                      rAnds.fitScale = True
                      rAnds.qMin = float(values[1])
                      rAnds.qMax = float(values[2])
                      rAnds.qRangeUserSelected = True
                  else:
                      _issueWarning(
                          "Command: \"DET/" + details + "\" not valid. Expected format is /DET/RESCALE/FIT [q1 q2]")
              else:
                  if len(values) == 2:
                      rAnds.scale = float(values[1])
                  else:
                      _issueWarning("Command: \"DET/" + details + "\" not valid. Expected format is /DET/RESCALE r")
          elif details.startswith('SHIFT'):
              if 'FIT' in details:
                  if len(values) == 1:
                      rAnds.fitShift = True
                  elif len(values) == 3:
                      rAnds.fitShift = True
                      rAnds.qMin = float(values[1])
                      rAnds.qMax = float(values[2])
                      rAnds.qRangeUserSelected = True
                  else:
                      _issueWarning(
                          "Command: \"DET/" + details + "\" not valid. Expected format is /DET/SHIFT/FIT [q1 q2]")
              else:
                  if len(values) == 2:
                      rAnds.shift = float(values[1])
                  else:
                      _issueWarning("Command: \"DET/" + details + "\" not valid. Expected format is /DET/RESCALE r")
function_tokens: def _readFrontRescaleShiftSetup ( self , details , reducer ) : values = details . split ( ) rAnds = reducer . instrument . getDetector ( 'FRONT' ) . rescaleAndShift rAnds . qRangeUserSelected = False if details . startswith ( 'RESCALE' ) : if 'FIT' in details : if len ( values ) == 1 : rAnds . fitScale = True elif len ( values ) == 3 : rAnds . fitScale = True rAnds . qMin = float ( values [ 1 ] ) rAnds . qMax = float ( values [ 2 ] ) rAnds . qRangeUserSelected = True else : _issueWarning ( "Command: \"DET/" + details + "\" not valid. Expected format is /DET/RESCALE/FIT [q1 q2]" ) else : if len ( values ) == 2 : rAnds . scale = float ( values [ 1 ] ) else : _issueWarning ( "Command: \"DET/" + details + "\" not valid. Expected format is /DET/RESCALE r" ) elif details . startswith ( 'SHIFT' ) : if 'FIT' in details : if len ( values ) == 1 : rAnds . fitShift = True elif len ( values ) == 3 : rAnds . fitShift = True rAnds . qMin = float ( values [ 1 ] ) rAnds . qMax = float ( values [ 2 ] ) rAnds . qRangeUserSelected = True else : _issueWarning ( "Command: \"DET/" + details + "\" not valid. Expected format is /DET/SHIFT/FIT [q1 q2]" ) else : if len ( values ) == 2 : rAnds . shift = float ( values [ 1 ] ) else : _issueWarning ( "Command: \"DET/" + details + "\" not valid. Expected format is /DET/RESCALE r" )