pylhe.LHEGenerator
- class pylhe.LHEGenerator(name: str, version: str, description: str, extra_attributes: dict[str, str]=<factory>)[source]
Bases:
objectInformation about a generator.
- __init__(name: str, version: str, description: str, extra_attributes: dict[str, str]=<factory>) None
Methods
__init__(name, version, description, ...)tolhe()Return the generator information as a string in LHE format.
Attributes
Return all the attributes of the generator element, including the name and version attributes.
Name of the generator
Version of the generator
Description of the generator
Generator XML attributes not represented by dedicated fields
- property attributes: dict[str, str]
Return all the attributes of the generator element, including the name and version attributes.
- description: str
Description of the generator
- extra_attributes: dict[str, str]
Generator XML attributes not represented by dedicated fields
- name: str
Name of the generator
- tolhe() str[source]
Return the generator information as a string in LHE format.
- Returns:
str: The generator information as a string in LHE format.
- version: str
Version of the generator