pyfeyn2.feynmandiagram.Head
- class pyfeyn2.feynmandiagram.Head(*args, **kwargs)[source]
Bases:
HeadMethods
__init__(*args, **kwargs)add_rule(rule)Add a rule to the style.
add_rules(rules)Add rules to the style.
get_link_dict([cached, cache])Return a dictionary of resolved links.
Return a dictionary of meta tags.
Return the sheet.
Return the sheet.
get_style(obj[, xml])Get the style of an object.
get_style_property(obj, property_name[, xml])Get a style property of an object.
with_rule(rule)Replace rules of the style.
with_rules(rules)Replace rules of the style.
with_sheet(sheet)Return the object with the sheet.
Attributes
cached_linksdefault_sheetroottitlemetaslinksstyle- add_rule(rule: str)
Add a rule to the style.
- add_rules(rules: str)
Add rules to the style.
- get_link_dict(cached=True, cache=True)[source]
Return a dictionary of resolved links.
If cached is True, then the cached resolved links are returned.
- get_style(obj, xml: XML = None) CSSStyleDeclaration
Get the style of an object.
This is preferred over accessing the style attribute directly, since it includes class and pdgid definitions.
- with_rule(rule: str)
Replace rules of the style.
- with_rules(rules: str)
Replace rules of the style.