pyfeyn2.feynmandiagram.Connector
- class pyfeyn2.feynmandiagram.Connector(*args, **kwargs)[source]
Bases:
ConnectorMethods
__init__(*args, **kwargs)Deprecated since version 2.2.6.
Get length of the connector
get_style_property(key)Get tension of the connector
put_style(key, value)Deprecated since version 0.0.0.
put_styles(**kwargs)Deprecated since version 0.0.0.
raw_style()with_class(clazz)with_color(color)with_id(value[, k])Set id to value and return self.
with_label(value[, k])Set label to value and return self.
with_length(length)Add length to the connector
with_momentum(value[, k])Set momentum to value and return self.
with_name(value[, k])Set name to value and return self.
with_particle(value[, k])Set particle to value and return self.
with_pdgid(value[, k])Set pdgid to value and return self.
with_style(style)with_style_properties(**kwargs)with_style_property(key, value)with_tension(tension)Add tension to the connector
with_type(value[, k])Set type to value and return self.
Attributes
CSS class string.
idlabelMomentum of the connector
Name of the particle
Particle object from the particle package
PDG ID of the particle
Type of the particle, e.g.
CSS style string.
- clazz: str | None = None
CSS class string.
- name: str | None = None
Name of the particle
- pdgid: int | None = None
PDG ID of the particle
- put_style(key, value)
Deprecated since version 0.0.0.
- put_styles(**kwargs)
Deprecated since version 0.0.0.
- style: CSSString
CSS style string.
- type: str | None = None
Type of the particle, e.g. fermion, boson, etc.
- with_id(value, k='id')
Set id to value and return self.
- with_label(value, k='label')
Set label to value and return self.
- with_momentum(value, k='momentum')
Set momentum to value and return self.
- with_name(value, k='name')
Set name to value and return self.
- with_particle(value, k='particle')
Set particle to value and return self.
- with_pdgid(value, k='pdgid')
Set pdgid to value and return self.
- with_type(value, k='type')
Set type to value and return self.