You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using MultiStateReporter ("file.nc", checkpoint_interval=interval) as the storage file in a simulation from ReplicaExchangeSampler. I can read the *.nc file with netcdf once the simulation is done, but I cannot read the file in the middle of the simulation or if the job is killed. For example I will get the following error when reading the file with reporter = multistate.MultiStateReporter('file.nc', open_mode='r'). I was wondering is there anyway I can retrieve the information until right before the job is killed and restart the simulation?
Warning: The openmmtools.multistate API is experimental and may change in future releases
Traceback (most recent call last):
File "/nfs/working/deep_learn/xiaowei/water_project/new_test_set_dGsolv_mpqrnn_32_3/132_500ps_restart/../useful_scripts/check_nc_valid.py", line 10, in <module>
reporter = multistate.MultiStateReporter(temp_file_path, open_mode='r')
File "/nfs/working/deep_learn/xiaowei/miniconda3/lib/python3.10/site-packages/openmmtools/multistate/multistatereporter.py", line 140, in __init__
self.open(open_mode)
File "/nfs/working/deep_learn/xiaowei/miniconda3/lib/python3.10/site-packages/openmmtools/multistate/multistatereporter.py", line 282, in open
self._storage_analysis = self._open_dataset_robustly(self._storage_analysis_file_path,
File "/nfs/working/deep_learn/xiaowei/miniconda3/lib/python3.10/site-packages/openmmtools/multistate/multistatereporter.py", line 395, in _open_dataset_robustly
return netcdf.Dataset(*args, **kwargs)
File "src/netCDF4/_netCDF4.pyx", line 2464, in netCDF4._netCDF4.Dataset.__init__
File "src/netCDF4/_netCDF4.pyx", line 2027, in netCDF4._netCDF4._ensure_nc_success
OSError: [Errno -101] NetCDF: HDF error: './remd.nc'
Thank you,
Xiaowei
The text was updated successfully, but these errors were encountered:
You should be able to open the netCDF file if the job is killed. Are you sure that no other process has the file open at the same time? What is the reason that your simulations get "killed"?
Also, are you trying to run this as MPI job? If so, you need to set the open_mode to None in my experience.
Hi,
I am using MultiStateReporter ("file.nc", checkpoint_interval=interval) as the storage file in a simulation from ReplicaExchangeSampler. I can read the *.nc file with netcdf once the simulation is done, but I cannot read the file in the middle of the simulation or if the job is killed. For example I will get the following error when reading the file with
reporter = multistate.MultiStateReporter('file.nc', open_mode='r')
. I was wondering is there anyway I can retrieve the information until right before the job is killed and restart the simulation?Thank you,
Xiaowei
The text was updated successfully, but these errors were encountered: