OutputSectionDefinition
- class ase2sprkkr.outputs.output_definitions.OutputSectionDefinition(name, members=[], written_name=None, info=None, description=None, is_optional=None, is_hidden=False, is_expert=False, experimental=False, has_hidden_members=False, name_in_grammar=None, force_order=None, name_regex=False, result_class=None, is_repeated=False, repeated_delimiter=None, repeated_count=None, repeated_with_name=False, write_condition=None, warning_condition=None, validators=())[source]
This class describes the format of one value of a standard potential section
Class hierarchy
Constructor
- Parameters:
validators (Callable[[Any, Any, str], Any] | Iterable[Callable[[Any, Any, str], Any]] | None)
- __init__(name, members=[], written_name=None, info=None, description=None, is_optional=None, is_hidden=False, is_expert=False, experimental=False, has_hidden_members=False, name_in_grammar=None, force_order=None, name_regex=False, result_class=None, is_repeated=False, repeated_delimiter=None, repeated_count=None, repeated_with_name=False, write_condition=None, warning_condition=None, validators=())
Definition of container (e.g. section of an input file). For the rest of the parameters see the
RealItemDefinition.- Parameters:
has_hidden_members (bool) – If true, this section is not intended for a direct editing
force_order (bool) – If True, the items has to retain the order, if False, the items can be in the input file in any order.
validators (callable or iterable of callables) – Semantic validators passed to
RealItemDefinition.
- force_order = True
The order of items in output file is fixed
- name_in_grammar = False
Parsed parts of the output have no names, they are identified by its positions
- child_class
standard child class
alias of
ase2sprkkr.outputs.output_definitions.OutputValueDefinition
- custom_class = None
There is no custom class in the output, only known parts of the file are parsed
- delimiter
- Parameters:
name (Optional[str])
- Return type:
ParserElement