FeynKit · latest
On this page

UfoLoadDiagnostics

symbolica.community.hepkit Class

UfoLoadDiagnostics()

Provenance, options, and entity counts from loading a UFO model.

Diagnostics make it easy to verify which restriction was applied and how many particles, interactions, and auxiliary structures were normalized.

Examples

Replace path/to/MyUFO with the directory containing your UFO model (particles.py, vertices.py, and related files).

from symbolica import S, E
from symbolica.community import hepkit as hep
loaded = hep.UfoLoader().load("path/to/MyUFO")
diagnostics = loaded.diagnostics
print(diagnostics.source, diagnostics.particle_count, diagnostics.vertex_rule_count)

Member details

source

Property · read-only#
source: pathlib.Path

Return the UFO source directory.

Examples

Using the setup in the UfoLoadDiagnostics class example:

source = diagnostics.source

restriction_name

Property · read-only#
restriction_name: Optional[str]

Return the applied restriction-card name, if any.

Examples

Using the setup in the UfoLoadDiagnostics class example:

restriction_name = diagnostics.restriction_name

simplify_model

Property · read-only#
simplify_model: bool

Return whether model expressions were simplified while loading.

Examples

Using the setup in the UfoLoadDiagnostics class example:

simplify_model = diagnostics.simplify_model

wrap_indices_in_lorentz_structures

Property · read-only#
wrap_indices_in_lorentz_structures: bool

Return whether normalized Lorentz indices were wrapped.

Examples

Using the setup in the UfoLoadDiagnostics class example:

wrap_indices_in_lorentz_structures = diagnostics.wrap_indices_in_lorentz_structures

order_count

Property · read-only#
order_count: int

Return the number of coupling orders loaded from the UFO model.

Examples

Using the setup in the UfoLoadDiagnostics class example:

order_count = diagnostics.order_count

model_parameter_count

Property · read-only#
model_parameter_count: int

Return the number of model parameters loaded.

Examples

Using the setup in the UfoLoadDiagnostics class example:

model_parameter_count = diagnostics.model_parameter_count

particle_count

Property · read-only#
particle_count: int

Return the number of particles loaded.

Examples

Using the setup in the UfoLoadDiagnostics class example:

particle_count = diagnostics.particle_count

propagator_count

Property · read-only#
propagator_count: int

Return the number of propagators loaded.

Examples

Using the setup in the UfoLoadDiagnostics class example:

propagator_count = diagnostics.propagator_count

lorentz_structure_count

Property · read-only#
lorentz_structure_count: int

Return the number of Lorentz structures loaded.

Examples

Using the setup in the UfoLoadDiagnostics class example:

lorentz_structure_count = diagnostics.lorentz_structure_count

coupling_count

Property · read-only#
coupling_count: int

Return the number of couplings loaded.

Examples

Using the setup in the UfoLoadDiagnostics class example:

coupling_count = diagnostics.coupling_count

vertex_rule_count

Property · read-only#
vertex_rule_count: int

Return the number of vertex rules loaded.

Examples

Using the setup in the UfoLoadDiagnostics class example:

vertex_rule_count = diagnostics.vertex_rule_count

function_count

Property · read-only#
function_count: int

Return the number of model functions loaded.

Examples

Using the setup in the UfoLoadDiagnostics class example:

function_count = diagnostics.function_count

form_factor_count

Property · read-only#
form_factor_count: int

Return the number of form factors loaded.

Examples

Using the setup in the UfoLoadDiagnostics class example:

form_factor_count = diagnostics.form_factor_count

parameter_value_count

Property · read-only#
parameter_value_count: int

Return the number of parameter values loaded into the parameter card.

Examples

Using the setup in the UfoLoadDiagnostics class example:

parameter_value_count = diagnostics.parameter_value_count

__repr__

Method#
__repr__() -> str

Return a concise summary of the UFO import diagnostics.

Examples

Using the setup in the UfoLoadDiagnostics class example:

print(loaded.diagnostics)

_repr_html_

Method#
_repr_html_() -> str

Render the UFO source and imported object counts as a notebook table.

Examples

Using the setup in the UfoLoadDiagnostics class example:

from IPython.display import display
display(diagnostics)

_repr_pretty_

Method#
_repr_pretty_(pretty: Any, cycle: bool) -> None

Write the concise diagnostic summary to an IPython pretty printer.

Examples

Using the setup in the UfoLoadDiagnostics class example:

from IPython.lib.pretty import pretty
text = pretty(diagnostics)

Parameters

NameTypeDefaultDescription
prettyAny—

The IPython pretty-printer object.

cyclebool—

Whether this object is part of a recursive formatting cycle.