jaxvacua.util.save_model_data#
- save_model_data(data, fname, model_ID, h12)#
Write
datatofiles_dir/h12_<h12>/<fname>as a gzip-compressed pickle. Creates intermediate directories as needed. Prompts the user on overwrite.- Parameters:
data (
Any) – Data to be stored.fname (
str) – Filename (relative to the per-h12 subdirectory).model_ID (
Union[int,str]) – Model identifier; required (used by callers as the cache key).h12 (
int) – Hodge number \(h^{1,2}\) — determines the subdirectory layout.
- Raises:
ValueError – If
model_IDisNone.- Return type:
None