write_meta#
- scikitplot.cython.write_meta(build_dir, meta)[source]#
Write
meta.jsonin the build directory atomically.- Parameters:
- build_dirpathlib.Path
Cache entry directory.
- metaMapping[str, Any]
Metadata mapping.
- Parameters:
- Return type:
None
Notes
Uses a write-then-rename (atomic replace) pattern so that a crash during writing never leaves a partially-written
meta.json. On POSIX this is an atomic operation; on Windows it usesreplace()which is best-effort.