Hi everyone,
I am doing some MCMC simulations in a Jupyter Notebook. I saved a trace using arviz.to_netcdf
to a certain filepath
, and then loaded it using arviz.from_netcdf
. However, I later ran another (improved) simulation using MCMC and wanted to override the old one, i.e. I wanted to save the new simulation on the same filepath
. However, if I do not close the notebook and I try to save to the same filepath
from which I loaded using arviz.from_netcdf
I get the following error
**OSError** : Unable to create file (unable to truncate a file which is already open)
How can I close the file opened by using arviz.from_netcdf
? I did not find anything in the Arviz documentation.
Thanks a lot!