amesh test: lima tries to overwrite EDF file
https://gitlab.esrf.fr/bliss/bliss/-/jobs/893653
The test does a single scan in a fresh directory. The lima traceback says it tried to overwrite the first file of the scan
[2023/12/19 20:21:50.019606] 7f91d5ffb700 *Application*Lima.Server.LimaCCDs::LimaCCDs::read_acc_saturated_cblevel-Error: Accumulation threshold plugins not loaded
[2023/12/19 20:21:50.067694] 7f4845606700 *Application*Lima.Server.LimaCCDs::LimaCCDs::read_acc_saturated_cblevel-Error: Accumulation threshold plugins not loaded
[2023/12/19 20:21:50.397224] 7f91d5ffb700 *Application*Lima.Server.LimaCCDs::LimaCCDs::read_acc_saturated_cblevel-Error: Accumulation threshold plugins not loaded
[2023/12/19 20:21:50.405403] 7f4845606700 *Application*Lima.Server.LimaCCDs::LimaCCDs::read_acc_saturated_cblevel-Error: Accumulation threshold plugins not loaded
[2023/12/19 20:21:51.709584] 7f4846e09700 *Control*Control::Saving::_setSavingError (control/src/CtSaving.cpp:1992)-Error: m_ctrl.m_status=<AcquisitionStatus=AcqFault, Error=Save overwrite error, ImageCounters=<LastImageAcquired=0, LastBaseImageReady=0, LastImageReady=0, LastImageSaved=-1, LastCounterReady=-1>, saving_mode=Auto frame
[2023/12/19 20:21:51.709695] 7f4846e09700 *Control*Control::Saving Container::open (control/src/CtSaving.cpp:2733)-Error: Exception(Error): Try to over write file: /tmp/pytest-of-root/pytest-0/test_nxw_amesh_nopolicy0/nexus_writer_session/scan0001/lima_simulator2_0000.edf [thrown]
[2023/12/19 20:21:51.711150] 7f4846e09700 *Control*Control::Event::reportEvent (control/src/CtEvent.cpp:133)-Error: *event=<Event [0.162644]: Severity=Error, Domain=Saving, Code=Default: Unknowed exception!>
In the mean time the internal writer tries to read the lima edf's which are expected to be saved, in order to copy the content to HDF5 and fails
...
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/writer/base.py", line 221, in __call__
self._callback(event_dict, signal, sender)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/writer/internal.py", line 30, in wrapper
return method(self, *args, **kw)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/bliss/scanning/writer/internal.py", line 118, in _on_event
self._scan_writer.add_channel_data(channel, data)
File "/builds/bliss/bliss/nexus_writer_service/writer/main.py", line 277, in add_channel_data
self._add_data_to_writer(subscan, channel, writer, data)
File "/builds/bliss/bliss/nexus_writer_service/writer/main.py", line 346, in _add_data_to_writer
self._add_lima_data(writer, lima_client, use_references)
File "/builds/bliss/bliss/nexus_writer_service/writer/main.py", line 375, in _add_lima_data
images = lima_client[from_index:]
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/blissdata/lima/client.py", line 224, in __getitem__
return self._get_slice(key)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/blissdata/lima/client.py", line 255, in _get_slice
return np.array([self._get_index(i) for i in key_range])
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/blissdata/lima/client.py", line 255, in <listcomp>
return np.array([self._get_index(i) for i in key_range])
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/blissdata/lima/client.py", line 238, in _get_index
return self._get_from_file(frame_id)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/blissdata/lima/client.py", line 295, in _get_from_file
return image_utils.image_from_file(
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/blissdata/lima/image_utils.py", line 467, in image_from_file
return f.GetData(image_index)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/silx/third_party/EdfFile.py", line 534, in GetData
return self._GetData(*var, **kw)
File "/opt/conda/envs/default_env/lib/python3.9/site-packages/silx/third_party/EdfFile.py", line 570, in _GetData
raise ValueError("EdfFile: Index out of limit")
ValueError: EdfFile: Index out of limit