parameters: (self)
return_statement: return
docstring: Main Execution Body
docstring_summary: Main Execution Body
docstring_tokens: Main Execution Body
function: def PyExec(self):
          """ Main Execution Body
          """
          # 1. Properties
          fpfilename = self.getPropertyValue("Filename")
  
          # 2. Import
          if fpfilename.lower().endswith(".hkl") is True:
              # (.hkl) file
              self._tableWS = self._loadFPHKLFile(fpfilename)
              self._dataWS = self._makeEmptyDataWorkspace()
          elif fpfilename.lower().endswith(".prf") is True:
              # (.prf) file
              self._tableWS, self._dataWS= self._loadFullprofPrfFile(fpfilename)
          elif fpfilename.lower().endswith(".dat") is True:
              # (.dat) file: Fullprof data file
              self._tableWS, self._dataWS = self._loadFullprofDataFile(fpfilename)
          else:
              raise NotImplementedError("File %s is neither .hkl nor .prf.  It is not supported." % (fpfilename))
  
          # 3. Export
          self.setProperty("PeakParameterWorkspace", self._tableWS)
          self.setProperty("OutputWorkspace", self._dataWS)
  
          return
function_tokens: def PyExec ( self ) : # 1. Properties fpfilename = self . getPropertyValue ( "Filename" ) # 2. Import if fpfilename . lower ( ) . endswith ( ".hkl" ) is True : # (.hkl) file self . _tableWS = self . _loadFPHKLFile ( fpfilename ) self . _dataWS = self . _makeEmptyDataWorkspace ( ) elif fpfilename . lower ( ) . endswith ( ".prf" ) is True : # (.prf) file self . _tableWS , self . _dataWS = self . _loadFullprofPrfFile ( fpfilename ) elif fpfilename . lower ( ) . endswith ( ".dat" ) is True : # (.dat) file: Fullprof data file self . _tableWS , self . _dataWS = self . _loadFullprofDataFile ( fpfilename ) else : raise NotImplementedError ( "File %s is neither .hkl nor .prf.  It is not supported." % ( fpfilename ) ) # 3. Export self . setProperty ( "PeakParameterWorkspace" , self . _tableWS ) self . setProperty ( "OutputWorkspace" , self . _dataWS ) return