classmethod graphicle.data.PdgArray.from_name(names: str | Iterable[str]) PdgArray[source]

Instantiates PdgArray using string representations of particle names, instead of integer valued PDG codes.

New in version 0.2.12.

Parameters:
names : str or iterable[str]

String representation of particle names.

Returns:

Instance constructed from names.

Return type:

PdgArray

Raises:

ValueError – If names are not the appropriate type, or are not recognised.


Last update: Jun 27, 2025