molsysviewer.config.load_user_presets#

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]]