pyfeyn is hosted by Hepforge, IPPP Durham

Package pyfeyn :: Module feynml :: Class FeynMLWriter
[hide private]
[frames] | no frames]

Class FeynMLWriter



Class to write a FeynML representation of a Feynman diagram.

Instance Methods [hide private]
  __init__(self, filename)
Write FeynML to a file.
  close(self)
Commit FeynML code to output file.
  addMetadata(self, name, value)
Add a meta tag to the FeynML header.
  describe(self, s)
Add a description to the FeynML header.
  diagramToXML(self, fd, convertlegs=True)
Create FeynML code for a diagram.
  blobToXML(self, b)
Create FeynML code for a blob.
  lineToXML(self, l)
Create FeynML code for a line.
  pointToXML(self, p)
Create FeynML code for a point.
  decopointToXML(self, p)
Create FeynML code for a decorated point.
  labelToXML(self, l)
Create FeynML code for a label.

Method Details [hide private]

__init__(self, filename)
(Constructor)

 
Write FeynML to a file.

close(self)

 
Commit FeynML code to output file.

addMetadata(self, name, value)

 
Add a meta tag to the FeynML header.

describe(self, s)

 
Add a description to the FeynML header.

diagramToXML(self, fd, convertlegs=True)

 
Create FeynML code for a diagram.

blobToXML(self, b)

 
Create FeynML code for a blob.

lineToXML(self, l)

 
Create FeynML code for a line.

pointToXML(self, p)

 
Create FeynML code for a point.

decopointToXML(self, p)

 
Create FeynML code for a decorated point.

labelToXML(self, l)

 
Create FeynML code for a label.