pyfeyn2.feynmandiagram.Propagator

class pyfeyn2.feynmandiagram.Propagator(*args, **kwargs)[source]

Bases: Propagator

__init__(*args, **kwargs)[source]

Deprecated since version 2.2.6.

Methods

__init__(*args, **kwargs)

conjugate()

Return the conjugate of the propagator.

connect(source, target)

connects(v1, v2[, directional])

Return True if the propagator connects to the vertex, False otherwise.

get_length()

Get length of the connector

get_style_property(key)

get_tension()

Get tension of the connector

goes_into(vertex)

Return True if the propagator goes into the vertex, False otherwise.

goes_out_of(vertex)

Return True if the propagator goes out of the vertex, False otherwise.

is_anti()

Return True if the particle is an anti particle, False otherwise.

is_anti_fermion()

Return True if the particle is an anti fermion, False otherwise.

is_any_fermion()

Return True if the particle is a fermion or anti fermion, False otherwise.

is_fermion()

Return True if the particle is a fermion, False otherwise.

put_style(key, value)

put_styles(**kwargs)

raw_style()

replace_vertex(old_vertex, new_vertex)

Replace the old vertex with the new vertex

with_class(clazz)

with_color(color)

with_id(id)

set id

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_new_id()

generate new id

with_pdgid([pdgid, type, name, feynmodel, sync])

with_source(source)

with_style(style)

with_style_properties(**kwargs)

with_style_property(key, value)

with_target(target)

with_tension(tension)

Add tension to the connector

with_texname(value[, k])

Set texname to value and return self.

with_type(value[, k])

Set type to value and return self.

Attributes

clazz

CSS class string.

id

label

momentum

Momentum of the connector

name

Name of the particle

pdgid

PDG ID of the particle

source

Source of the object

target

Target of the object

texname

LaTeX name of the particle

type

Type of the particle, e.g. fermion, boson, etc.

style

CSS style string.

clazz: str | None = None

CSS class string.

conjugate()[source]

Return the conjugate of the propagator.

connects(v1: Vertex, v2: Vertex, directional=False)[source]

Return True if the propagator connects to the vertex, False otherwise.

get_length()

Get length of the connector

get_tension()

Get tension of the connector

goes_into(vertex)

Return True if the propagator goes into the vertex, False otherwise.

goes_out_of(vertex)

Return True if the propagator goes out of the vertex, False otherwise.

is_anti()

Return True if the particle is an anti particle, False otherwise.

is_anti_fermion()

Return True if the particle is an anti fermion, False otherwise.

is_any_fermion()

Return True if the particle is a fermion or anti fermion, False otherwise.

is_fermion()

Return True if the particle is a fermion, False otherwise.

momentum: Momentum | None = None

Momentum of the connector

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.

replace_vertex(old_vertex: Vertex, new_vertex: Vertex)[source]

Replace the old vertex with the new vertex

source: str | None = ''

Source of the object

style: CSSString

CSS style string.

target: str | None = ''

Target of the object

texname: str | None = None

LaTeX name of the particle

type: str | None = None

Type of the particle, e.g. fermion, boson, etc.

with_id(id: str)

set id

with_label(value, k='label')

Set label to value and return self.

with_length(length: float)

Add length to the connector

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_new_id()

generate new id

with_tension(tension: float)

Add tension to the connector

with_texname(value, k='texname')

Set texname to value and return self.

with_type(value, k='type')

Set type to value and return self.