parameters: (self, prffilename)
return_statement: return (tablews, dataws)
docstring: Load Fullprof .prf file
docstring_summary: Load Fullprof .prf file
docstring_tokens: Load Fullprof . prf file
function: def _loadFullprofPrfFile(self, prffilename):
          """ Load Fullprof .prf file
          """
          # 1. Parse the file to dictionary
          infodict, data = self._parseFullprofPrfFile(prffilename)
  
          # 2. Export information to table file
          tablews = WorkspaceFactory.createTable()
          tablews.addColumn("str", "Name")
          tablews.addColumn("double", "Value")
          for parname in infodict:
              parvalue = infodict[parname]
              tablews.addRow([parname, parvalue])
  
          # 3. Export the data workspace
          datasize = len(data)
          print("Data Size = ", datasize)
          dataws = WorkspaceFactory.create("Workspace2D", 4, datasize, datasize)
          for i in range(datasize):
              for j in range(4):
                  dataws.dataX(j)[i] = data[i][0]
                  dataws.dataY(j)[i] = data[i][j+1]
                  dataws.dataE(j)[i] = 1.0
  
          return (tablews, dataws)
function_tokens: def _loadFullprofPrfFile ( self , prffilename ) : # 1. Parse the file to dictionary infodict , data = self . _parseFullprofPrfFile ( prffilename ) # 2. Export information to table file tablews = WorkspaceFactory . createTable ( ) tablews . addColumn ( "str" , "Name" ) tablews . addColumn ( "double" , "Value" ) for parname in infodict : parvalue = infodict [ parname ] tablews . addRow ( [ parname , parvalue ] ) # 3. Export the data workspace datasize = len ( data ) print ( "Data Size = " , datasize ) dataws = WorkspaceFactory . create ( "Workspace2D" , 4 , datasize , datasize ) for i in range ( datasize ) : for j in range ( 4 ) : dataws . dataX ( j ) [ i ] = data [ i ] [ 0 ] dataws . dataY ( j ) [ i ] = data [ i ] [ j + 1 ] dataws . dataE ( j ) [ i ] = 1.0 return ( tablews , dataws )