feynml.interface.formcalc.fermion.Fermion
- class feynml.interface.formcalc.fermion.Fermion(sign: int, type: int, i: int, sequenceform: feynml.interface.formcalc.sequenceform.SequenceForm)[source]
Bases:
Particle- __init__(sign: int, type: int, i: int, sequenceform: SequenceForm) None
Methods
__init__(sign, type, i, sequenceform)from_str(fermion)Example
Example
n()Example
re()Attributes
signtypeisequenceform- classmethod from_str(fermion: str)[source]
Example
>>> str(Fermion.from_str('F[1, {1, SequenceForm["Col", 1]}]')) 'F[1, {1, SequenceForm["Col", 1]}]'
>>> str(Fermion.from_str('-F[1, {1, SequenceForm["Col", 1]}]')) '-F[1, {1, SequenceForm["Col", 1]}]'