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.sourcerestriction_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_namesimplify_model
Property · read-only#simplify_model: boolReturn whether model expressions were simplified while loading.
Examples
Using the setup in the UfoLoadDiagnostics class example:
simplify_model = diagnostics.simplify_modelwrap_indices_in_lorentz_structures
Property · read-only#wrap_indices_in_lorentz_structures: boolReturn 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_structuresorder_count
Property · read-only#order_count: intReturn the number of coupling orders loaded from the UFO model.
Examples
Using the setup in the UfoLoadDiagnostics class example:
order_count = diagnostics.order_countmodel_parameter_count
Property · read-only#model_parameter_count: intReturn the number of model parameters loaded.
Examples
Using the setup in the UfoLoadDiagnostics class example:
model_parameter_count = diagnostics.model_parameter_countparticle_count
Property · read-only#particle_count: intReturn the number of particles loaded.
Examples
Using the setup in the UfoLoadDiagnostics class example:
particle_count = diagnostics.particle_countpropagator_count
Property · read-only#propagator_count: intReturn the number of propagators loaded.
Examples
Using the setup in the UfoLoadDiagnostics class example:
propagator_count = diagnostics.propagator_countlorentz_structure_count
Property · read-only#lorentz_structure_count: intReturn the number of Lorentz structures loaded.
Examples
Using the setup in the UfoLoadDiagnostics class example:
lorentz_structure_count = diagnostics.lorentz_structure_countcoupling_count
Property · read-only#coupling_count: intReturn the number of couplings loaded.
Examples
Using the setup in the UfoLoadDiagnostics class example:
coupling_count = diagnostics.coupling_countvertex_rule_count
Property · read-only#vertex_rule_count: intReturn the number of vertex rules loaded.
Examples
Using the setup in the UfoLoadDiagnostics class example:
vertex_rule_count = diagnostics.vertex_rule_countfunction_count
Property · read-only#function_count: intReturn the number of model functions loaded.
Examples
Using the setup in the UfoLoadDiagnostics class example:
function_count = diagnostics.function_countform_factor_count
Property · read-only#form_factor_count: intReturn the number of form factors loaded.
Examples
Using the setup in the UfoLoadDiagnostics class example:
form_factor_count = diagnostics.form_factor_countparameter_value_count
Property · read-only#parameter_value_count: intReturn 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__() -> strReturn 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_() -> strRender 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
| Name | Type | Default | Description |
|---|---|---|---|
pretty | Any | — | The IPython pretty-printer object. |
cycle | bool | — | Whether this object is part of a recursive formatting cycle. |
View generated signature source: docs/api/python/feynkit-community.pyi:11798