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. Peak profile parameter workspace
          irffilename = self.getPropertyValue("FullprofParameterFile")
          paramWS = self.createPeakParameterWorkspace(irffilename)
          self.setProperty("InstrumentParameterWorkspace", paramWS)
  
          # 2. Get Other Properties
          reflectionfilename = self.getPropertyValue("ReflectionsFile")
  
          # 3. Import reflections list
          genhkl = self.getProperty("GenerateBraggReflections").value
          print("GeneraateHKL? = ", genhkl)
          if genhkl:
              hklmax = self.getProperty("MaxHKL").value
              if len(hklmax) != 3:
                  raise RuntimeError("MaxHKL must have 3 integers")
              hklws = self.generateBraggReflections(hklmax)
          else:
              hklwsname = self.getProperty("BraggPeakParameterWorkspace").value
              hklws = self.importFullProfHKLFile(reflectionfilename, hklwsname)
          self.setProperty("BraggPeakParameterWorkspace", hklws)
  
          return
function_tokens: def PyExec ( self ) : # 1. Peak profile parameter workspace irffilename = self . getPropertyValue ( "FullprofParameterFile" ) paramWS = self . createPeakParameterWorkspace ( irffilename ) self . setProperty ( "InstrumentParameterWorkspace" , paramWS ) # 2. Get Other Properties reflectionfilename = self . getPropertyValue ( "ReflectionsFile" ) # 3. Import reflections list genhkl = self . getProperty ( "GenerateBraggReflections" ) . value print ( "GeneraateHKL? = " , genhkl ) if genhkl : hklmax = self . getProperty ( "MaxHKL" ) . value if len ( hklmax ) != 3 : raise RuntimeError ( "MaxHKL must have 3 integers" ) hklws = self . generateBraggReflections ( hklmax ) else : hklwsname = self . getProperty ( "BraggPeakParameterWorkspace" ) . value hklws = self . importFullProfHKLFile ( reflectionfilename , hklwsname ) self . setProperty ( "BraggPeakParameterWorkspace" , hklws ) return