molsysviewer.config package#

Submodules#

molsysviewer.config.user_presets module#

molsysviewer.config.user_presets.load_user_presets(path)[source]#

Load user presets from a JSON or YAML file into user_presets.

The file must contain a top-level mapping: preset_name -> {base, options, rules}. YAML support requires pyyaml; falls back to JSON otherwise.

Parameters:

path (str | Path)

Return type:

Dict[str, Dict[str, Any]]

Module contents#

User-facing configuration for MolSysViewer.

Adjust the values here to control default viewer behavior without editing code.

molsysviewer.config.load_user_presets(path)[source]#

Load user presets from a JSON or YAML file into user_presets.

The file must contain a top-level mapping: preset_name -> {base, options, rules}. YAML support requires pyyaml; falls back to JSON otherwise.

Parameters:

path (str | Path)

Return type:

Dict[str, Dict[str, Any]]