YAML utilities¶
Read and write YAML files with numpy and Path support.
This module is a convenience for plugins, not core code – nothing
in ember itself depends on it. A plugin that wants to load or save
its own configuration as YAML can use read_yaml() and
write_yaml() in place of yaml.safe_load and yaml.safe_dump.
The following fixes are applied:
Dump numpy arrays and scalars as plain YAML lists and scalars
Pathas an expanded stringParse scientific notation without decimal points e.g.
1e-5Use PyYAML’s
CSafeLoader/CSafeDumperfor speed where available, falling back to the pure-Python versions otherwiseAlways read and write files as UTF-8 encoded