Hello,
My team uses openquake and frequently needs to store the HDF5 files elsewhere in remote storage (shared drive) so that more than one person can access calculation results.
It appears that the importcalc.py file has been updated not too long ago, but in doing so, it removes the ability to import calculations from a remote filepath.
e.g.,
path = 'full path to hdf5 file'
from openquake.commands import importcalc
importcalc.main(path)
OSError: File not found: C:\[userdirectory]\oqdata\calc_987.hdf5
The same error occurs with the console usage, e.g.,
oq importcalc "full path the filename"
I believe this is a problem with line 39, where the path gets over written by the calc_id number. Maybe it's not a big but a feature, but it would require us to copy the hdf5 files to our own oq_data folders, which can be quite space intensive.
A way around this is to use the old import_calc.py file, but that's less ideal.
Thanks for reading!