parameters: (self)
docstring: Main method to execute the algorithm
docstring_summary: Main method to execute the algorithm
docstring_tokens: Main method to execute the algorithm
function: def PyExec(self):
          """
          Main method to execute the algorithm
          """
          # Get input
          wksp = self.getProperty('InputWorkspace').value
          assert wksp, 'Input workspace cannot be None'
  
          # process workspace to make it a PointData workspace
          if wksp.isHistogramData():
              wksp_name = wksp.name()
              wksp = ConvertToPointData(InputWorkspace=wksp_name, OutputWorkspace=wksp_name)
  
          gsas_content = self._write_gsas_fxye(wksp)
  
          # Get output and write file
          gsas_name = self.getProperty('OutputFilename').value
          with open(gsas_name, 'w') as gsas_file:
              gsas_file.write(gsas_content)
function_tokens: def PyExec ( self ) : # Get input wksp = self . getProperty ( 'InputWorkspace' ) . value assert wksp , 'Input workspace cannot be None' # process workspace to make it a PointData workspace if wksp . isHistogramData ( ) : wksp_name = wksp . name ( ) wksp = ConvertToPointData ( InputWorkspace = wksp_name , OutputWorkspace = wksp_name ) gsas_content = self . _write_gsas_fxye ( wksp ) # Get output and write file gsas_name = self . getProperty ( 'OutputFilename' ) . value with open ( gsas_name , 'w' ) as gsas_file : gsas_file . write ( gsas_content )