parameters: (run, DetCalFile,  workDir, fileName, qLow=-25, qHigh=25, q_frame='sample')
return_statement: return MDdata
docstring: getSample loads the event workspace, converts it to reciprocal space as an MDWorkspace.
          The event workspace will be removed from memory.
      Input:
          run - int; the run number
          DetCalFile - string; path to the DetCalFile.  If None, default calibration is used.
          workDir - not used.  TODO - remove this.
          fileName - str; the events file to load.  Should probably be an absolute path.
          qLow, qHigh - the returned MDWorkspace will range from qLow to qHigh in all 3 directions.
          q_frame - either 'sample' or 'lab'.  Whether to return in the lab or sample coordinate system.
      Returns:
          MDdata - a handle for the mtd['MDdata'] object, which contains the loaded run in reciprocal space.
docstring_summary: getSample loads the event workspace, converts it to reciprocal space as an MDWorkspace.
          The event workspace will be removed from memory.
      Input:
          run - int; the run number
          DetCalFile - string; path to the DetCalFile.  If None, default calibration is used.
          workDir - not used.  TODO - remove this.
          fileName - str; the events file to load.  Should probably be an absolute path.
          qLow, qHigh - the returned MDWorkspace will range from qLow to qHigh in all 3 directions.
          q_frame - either 'sample' or 'lab'.  Whether to return in the lab or sample coordinate system.
      Returns:
          MDdata - a handle for the mtd['MDdata'] object, which contains the loaded run in reciprocal space.
docstring_tokens: getSample loads the event workspace converts it to reciprocal space as an MDWorkspace . The event workspace will be removed from memory . Input : run - int ; the run number DetCalFile - string ; path to the DetCalFile . If None default calibration is used . workDir - not used . TODO - remove this . fileName - str ; the events file to load . Should probably be an absolute path . qLow qHigh - the returned MDWorkspace will range from qLow to qHigh in all 3 directions . q_frame - either sample or lab . Whether to return in the lab or sample coordinate system . Returns : MDdata - a handle for the mtd [ MDdata ] object which contains the loaded run in reciprocal space .
function: def getSample(run, DetCalFile,  workDir, fileName, qLow=-25, qHigh=25, q_frame='sample'):
      """
      getSample loads the event workspace, converts it to reciprocal space as an MDWorkspace.
          The event workspace will be removed from memory.
      Input:
          run - int; the run number
          DetCalFile - string; path to the DetCalFile.  If None, default calibration is used.
          workDir - not used.  TODO - remove this.
          fileName - str; the events file to load.  Should probably be an absolute path.
          qLow, qHigh - the returned MDWorkspace will range from qLow to qHigh in all 3 directions.
          q_frame - either 'sample' or 'lab'.  Whether to return in the lab or sample coordinate system.
      Returns:
          MDdata - a handle for the mtd['MDdata'] object, which contains the loaded run in reciprocal space.
      """
  
      # data
      logger.information('Loading file' + fileName)
      data = Load(Filename=fileName)
      if DetCalFile is not None:
          LoadIsawDetCal(InputWorkspace=data, Filename=DetCalFile)
  
      if q_frame == 'lab':
          Q3DFrame = 'Q_lab'
      elif q_frame == 'sample':
          Q3DFrame = 'Q_sample'
      else:
          raise ValueError(
              'ICCFT:calcSomeTOF - q_frame must be either \'lab\' or \'sample\'; %s was provided' % q_frame)
  
      MDdata = ConvertToMD(InputWorkspace=data, QDimensions='Q3D', dEAnalysisMode='Elastic',
                           Q3DFrames=Q3DFrame, QConversionScales='Q in A^-1',
                           MinValues='%f, %f, %f' % (qLow, qLow, qLow), Maxvalues='%f, %f, %f' % (qHigh, qHigh, qHigh), MaxRecursionDepth=10,
                           LorentzCorrection=False)
      mtd.remove('data')
      return MDdata
function_tokens: def getSample ( run , DetCalFile , workDir , fileName , qLow = - 25 , qHigh = 25 , q_frame = 'sample' ) : # data logger . information ( 'Loading file' + fileName ) data = Load ( Filename = fileName ) if DetCalFile is not None : LoadIsawDetCal ( InputWorkspace = data , Filename = DetCalFile ) if q_frame == 'lab' : Q3DFrame = 'Q_lab' elif q_frame == 'sample' : Q3DFrame = 'Q_sample' else : raise ValueError ( 'ICCFT:calcSomeTOF - q_frame must be either \'lab\' or \'sample\'; %s was provided' % q_frame ) MDdata = ConvertToMD ( InputWorkspace = data , QDimensions = 'Q3D' , dEAnalysisMode = 'Elastic' , Q3DFrames = Q3DFrame , QConversionScales = 'Q in A^-1' , MinValues = '%f, %f, %f' % ( qLow , qLow , qLow ) , Maxvalues = '%f, %f, %f' % ( qHigh , qHigh , qHigh ) , MaxRecursionDepth = 10 , LorentzCorrection = False ) mtd . remove ( 'data' ) return MDdata