Saving
- dive.saving.load_trace(filename: str) tuple[InferenceData, dict]
Returns the trace and the model dictionary from a netCDF file.
- Parameters:
filename (str) – The filepath of the file to be read.
- Returns:
trace, model_return – A tuple containing the loaded trace and the recreated model dictionary.
- Return type:
az.InferenceData, dict
See also
- dive.saving.save_trace(trace: InferenceData, filename: str | None = None)
Saves a trace to a netCDF file.
If no name is provided, the date and time will be used as the filename.
- Parameters:
trace (az.InferenceData) – The trace to be saved.
filename (str, optional) – The name of the generated file.
See also