Skip to content

Widefield integration tests failing #1122

Description

@k1o0

The widefield integration tests are failing on ibllib

[2026-07-07T16:08:10.950662535Z] test_compress (ibllib.tests.integration.tasks.test_widefield_tasks.TestWidefieldPreprocessAndCompress.test_compress) ... �[36m2026-07-07 16:08:10 INFO     tasks.py:254  Starting job <class 'ibllib.pipes.widefield_tasks.WidefieldCompress'>�[0m
[2026-07-07T16:08:10.951272839Z] �[36m2026-07-07 16:08:10 INFO     tasks.py:257  running ibllib version 4.0.1�[0m
[2026-07-07T16:08:10.951757156Z] �[36m2026-07-07 16:08:10 INFO     tasks.py:507  Checking input files�[0m
[2026-07-07T16:08:10.955065645Z] �[1;33m2026-07-07 16:08:10 WARNING  tasks.py:520  Some files are not ALF datasets and will not be checked for ambiguity�[0m
[2026-07-07T16:08:10.957323144Z] �[36m2026-07-07 16:08:10 INFO     tasks.py:432  All input files found: running task�[0m
[2026-07-07T16:08:10.957972598Z] �[36m2026-07-07 16:08:10 INFO     tasks.py:263  Setup value is: True�[0m
[2026-07-07T16:08:10.959942399Z]
[2026-07-07T16:08:10.964011139Z] �[1;31m2026-07-07 16:08:10 ERROR    tasks.py:292  Traceback (most recent call last):
[2026-07-07T16:08:10.964019134Z]   File "/workspace/repo/ibllib/pipes/tasks.py", line 282, in run
[2026-07-07T16:08:10.964020293Z]     outputs = self._run(**kwargs)
[2026-07-07T16:08:10.964021312Z]               ^^^^^^^^^^^^^^^^^^^
[2026-07-07T16:08:10.964022248Z]   File "/workspace/repo/ibllib/pipes/widefield_tasks.py", line 75, in _run
[2026-07-07T16:08:10.964023163Z]     labcams.io.stack_to_mj2_lossless(stack, str(output_file), rate=30)
[2026-07-07T16:08:10.964024362Z]   File "/workspace/venv/lib/python3.12/site-packages/labcams/io.py", line 1158, in stack_to_mj2_lossless
[2026-07-07T16:08:10.964025472Z]     sq.writeFrame(f)
[2026-07-07T16:08:10.96402674Z]   File "/workspace/venv/lib/python3.12/site-packages/skvideo/io/abstract.py", line 514, in writeFrame
[2026-07-07T16:08:10.964027882Z]     self._proc.stdin.write(vid.tostring())
[2026-07-07T16:08:10.964028979Z]                            ^^^^^^^^^^^^
[2026-07-07T16:08:10.964030444Z] AttributeError: 'numpy.ndarray' object has no attribute 'tostring'
[2026-07-07T16:08:10.964031544Z] �[0m
[2026-07-07T16:08:10.964672822Z] �[36m2026-07-07 16:08:10 INFO     tasks.py:293  Job <class 'ibllib.pipes.widefield_tasks.WidefieldCompress'> errored�[0m
[2026-07-07T16:08:10.969918668Z] /workspace/repo/ibllib/pipes/tasks.py:295: ResourceWarning: unclosed file <_io.BufferedWriter name='/dev/null'>
[2026-07-07T16:08:10.969925887Z]   if self.on_error == 'raise':
[2026-07-07T16:08:10.969927129Z] ResourceWarning: Enable tracemalloc to get the object allocation traceback
[2026-07-07T16:08:10.970183312Z] /root/.local/share/uv/python/cpython-3.12.13-linux-x86_64-gnu/lib/python3.12/subprocess.py:1127: ResourceWarning: subprocess 3068 is still running
[2026-07-07T16:08:10.970189543Z]   _warn("subprocess %s is still running" % self.pid,
[2026-07-07T16:08:10.97019094Z] ResourceWarning: Enable tracemalloc to get the object allocation traceback
[2026-07-07T16:08:10.970417377Z] �[36m2026-07-07 16:08:10 INFO     tasks.py:307  N outputs: 0�[0m
[2026-07-07T16:08:10.97095278Z] �[36m2026-07-07 16:08:10 INFO     tasks.py:308  --- 0.01858687400817871 seconds run-time ---�[0m
[2026-07-07T16:08:10.971880991Z] FAIL
[2026-07-07T16:32:10.842702646Z] ======================================================================
[2026-07-07T16:32:10.842877257Z] FAIL: test_preprocess (ibllib.tests.integration.tasks.test_widefield_tasks.TestWidefieldPreprocessAndCompress.test_preprocess)
[2026-07-07T16:32:10.842887355Z] ----------------------------------------------------------------------
[2026-07-07T16:32:10.842888464Z] Traceback (most recent call last):
[2026-07-07T16:32:10.842889559Z]   File "/workspace/repo/ibllib/tests/integration/tasks/test_widefield_tasks.py", line 144, in test_preprocess
[2026-07-07T16:32:10.842890559Z]     assert_array_almost_equal(np.load(self.data_folder.joinpath('U.npy')),
[2026-07-07T16:32:10.842891458Z]   File "/workspace/venv/lib/python3.12/site-packages/numpy/testing/_private/utils.py", line 1168, in assert_array_almost_equal
[2026-07-07T16:32:10.842892651Z]     assert_array_compare(compare, actual, desired, err_msg=err_msg,
[2026-07-07T16:32:10.842893549Z]   File "/workspace/venv/lib/python3.12/site-packages/numpy/testing/_private/utils.py", line 919, in assert_array_compare
[2026-07-07T16:32:10.842894871Z]     raise AssertionError(msg)
[2026-07-07T16:32:10.842896151Z] AssertionError:
[2026-07-07T16:32:10.842897129Z] Arrays are not almost equal to 4 decimals
[2026-07-07T16:32:10.842898733Z]
[2026-07-07T16:32:10.842899757Z] Mismatched elements: 32000 / 1382400 (2.31%)
[2026-07-07T16:32:10.842900953Z] Max absolute difference among violations: 0.02481999
[2026-07-07T16:32:10.842901857Z] Max relative difference among violations: 1324.2716
[2026-07-07T16:32:10.842902822Z]  ACTUAL: array([[[ 3.1796e-02,  3.8969e-02, -8.7419e-02,  1.1898e-04],
[2026-07-07T16:32:10.842903865Z]         [ 3.1729e-02,  3.7461e-02, -8.7379e-02, -2.8009e-03],
[2026-07-07T16:32:10.842904674Z]         [ 4.2180e-02,  1.4672e-02, -8.5939e-02, -4.1267e-02],...
[2026-07-07T16:32:10.842905565Z]  DESIRED: array([[[ 2.1904e-02,  3.5227e-02, -8.1577e-02, -2.4701e-02],
[2026-07-07T16:32:10.84290634Z]         [ 2.0805e-02,  3.6109e-02, -8.1351e-02, -2.5547e-02],
[2026-07-07T16:32:10.84290717Z]         [ 3.2500e-02,  1.7491e-02, -8.1252e-02, -5.3695e-02],...

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions