I'm running an experiment where I want to be able to save my data to HDF5 on a shared network drive on one computer (using python and h5py), and be able to read it and do analysis while it's running (and potentially saving more data to the file) with Mathematica on another computer. I know how to save a file in SWMR mode in python, but the example code for h5py shows that it also has to be opened in SWMR mode, and I can't find any such options for Mathematica.
Does anyone know the details of Mathematica's HDF5 implementation well enough to say whether this functionality is supported?
HDF5Tools`HDF5OpenFile
will work for you? From thePrintDefinitionsLocal
it looks like the modes are the same as the ones here (i.e. RDONLY, RDWR, TRUNC) plus an EXCL mode I guess. The actual opener function isHDF5Tools`h5fopen
which is a library function. $\endgroup$Needs["HDF5Tools`"]
returnedGet::noopen: Cannot open HDF5Tools`. >>
andNeeds::nocont: Context HDF5Tools` was not created when Needs was evaluated. >>
, which I guess means no? $\endgroup$