ProfilesConfigurationContainer
- class ase2sprkkr.profiles.ProfilesConfigurationContainer(definition, container=None)[source]
Dict-like repeated section with persistent and virtual profile views.
Class hierarchy
Constructor
- __init__(definition, container=None)
Create the container and its members, according to the definition
- reserved_names = frozenset({'ase', 'default', 'legacy'})
- legacy_fields = ('mpi', 'mpi_warning', 'executable_dir', 'executable_suffix')
- _legacy_profile(create=False)[source]
Return the mutable backing profile used by deprecated options.
- static _parse_ase_value(section, name, option, value)[source]
Parse one ASE INI value using the common profile type contract.
- stage(transaction, values=None, value=None, *, unknown='find', merge=False, **kwargs)[source]
Stage public profile changes without exposing reserved profiles.
- _stage_persisted(transaction, values=None, value=None, *, unknown='find', merge=False, **kwargs)[source]
Stage profiles read from persisted ASE2SPRKKR configuration.
- property ase
ASE-owned profile, editable via the ASE configuration file.
- property default
Selected profile; a virtual alias, not a stored configuration.
- resolve_name(name=None)[source]
Resolve a profile name according to configuration precedence.
The reserved name “default” always means the currently selected profile, never a persistent profile called “default”.
- default_write_target()[source]
Resolve a write to the default profile without redundant state.
An explicitly selected named profile remains the write target. Otherwise ASE’s [sprkkr] settings are the natural user default. A write to a missing ASE profile creates that section in the authoritative ASE config.ini, rather than a parallel YAML copy.
- save_ase_changes(*, system=False)[source]
Write staged ASE changes, leaving the staging intact on failure.
This is the single persistence boundary for ASE-owned profiles, shared by explicit profile saving, CLI writes, and the root Configuration.save_user_preferences() method.
- _abc_impl = <_abc._abc_data object>