pylhe.LHEGenerator
- class pylhe.LHEGenerator(name: str, version: str, description: str, attributes: dict[str, str] | None = None)[source]
Bases:
objectInformation about a generator.
- __init__(name: str, version: str, description: str, attributes: dict[str, str] | None = None) None[source]
Methods
__init__(name, version, description[, ...])tolhe()Return the generator information as a string in LHE format.
Attributes
Generator XML attributes, e.g. name and version.
Name of the generator, retrieved from the attributes.
Version of the generator, retrieved from the attributes.
Description of the generator
- attributes: dict[str, str] = {}
Generator XML attributes, e.g. name and version
- description: str
Description of the generator
- property name: str
Name of the generator, retrieved from the attributes.
- tolhe() str[source]
Return the generator information as a string in LHE format.
- Returns:
str: The generator information as a string in LHE format.
- property version: str
Version of the generator, retrieved from the attributes.