Skip to content
Snippets Groups Projects
Commit 50543082 authored by payno's avatar payno
Browse files

[io] replace get_data and HDF5File from thirdparty to the one from silx

parent 3dd357a4
No related branches found
No related tags found
No related merge requests found
Pipeline #41371 passed
......@@ -38,7 +38,20 @@ from est.units import ur
from est.core.types.dim import Dim
from est.core.types import Spectra
from est.io.utils.spec import read_spectrum as read_spec_spectrum
from est.thirdparty.silx.hdf5file import get_data, HDF5File
try:
from silx.io.h5py_utils import File as HDF5File
except:
from est.thirdparty.silx.hdf5file import get_data, HDF5File
else:
from silx.io.utils import get_data as silx_get_data
from silx.io.h5py_utils import retry, retry_contextmanager
from silx.utils.retry import retry_contextmanager
@retry(retry_timeout=0.5)
def get_data(url):
return silx_get_data(url)
try:
from est.io.utils.larch import read_ascii as larch_read_ascii
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment