CI: test_get_data is falky
https://gitlab.esrf.fr/workflow/ewoksapps/est/-/jobs/819171
https://gitlab.esrf.fr/workflow/ewoksapps/est/-/jobs/816122
period = 0.01
spectrum_cu_from_larch = <est.core.types.spectrum.Spectrum object at 0x7f97f3c63ee0>
tmpdir = local('/tmp/pytest-of-root/pytest-0/test_get_data_0_01_0')
@pytest.mark.parametrize("period", [0.01, 0.1, 0.5])
def test_get_data(period, spectrum_cu_from_larch, tmpdir):
filename = str(tmpdir / "data.h5")
scan = "1.1"
npoints = len(spectrum_cu_from_larch.energy)
positioners = {"energy": spectrum_cu_from_larch.energy}
detectors = {"mu": spectrum_cu_from_larch.mu}
npoints = spectrum_cu_from_larch.energy.size
blocksize = max(int(npoints / 10), 1)
est_time = npoints / blocksize * period
tmax = time.time() + est_time + 5
print("Estimated scan time", est_time, "s")
urls = [
f"silx://{filename}::/{scan}/measurement/energy",
f"silx://{filename}::/{scan}/measurement/mu",
]
with nxwriter_process(filename, scan, positioners, detectors, blocksize, period):
nprogress = 0
while nprogress != npoints:
> data = [get_data(url, retry_timeout=3) for url in urls]
src/est/tests/test_acquisition.py:34:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
src/est/tests/test_acquisition.py:34: in <listcomp>
data = [get_data(url, retry_timeout=3) for url in urls]
/usr/local/lib/python3.8/site-packages/silx/utils/retry.py:165: in wrapper
return method(*args, **kw)
src/est/io/utils/read.py:58: in get_data
dset = h5[data_path]
h5py/_objects.pyx:54: in h5py._objects.with_phil.wrapper
???
h5py/_objects.pyx:55: in h5py._objects.with_phil.wrapper
???
/usr/local/lib/python3.8/site-packages/h5py/_hl/group.py:357: in __getitem__
oid = h5o.open(self.id, self._e(name), lapl=self._lapl)
h5py/_objects.pyx:54: in h5py._objects.with_phil.wrapper
???
h5py/_objects.pyx:55: in h5py._objects.with_phil.wrapper
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E KeyError: 'Unable to synchronously open object (addr overflow, addr = 6416, size = 328, eoa = 2048)'
h5py/h5o.pyx:189: KeyError
----------------------------- Captured stdout call -----------------------------
Edited by Wout De Nolf