You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
write_netcdf fails with pandas 3 for assemblies with string coordinates #242
brainscore_core declares pandas without an upper bound, while vision and language both pin pandas<3. Installing core on its own now pulls pandas 3, and with the pinned xarray<2022.6 that breaks writing assemblies that have string coordinates:
pandas 3.0.6, xarray 2022.3.0, netCDF4 1.7.5.1, numpy 1.26.4 (a fresh pip install brainscore_core): ValueError: unsupported dtype for netCDF4 variable: object
The same environment with pandas 2.3.3: writes fine.
So package_data_assembly fails for typical assemblies (string stimulus_id/neuroid_id) when core is used without vision or language. Pinning pandas<3 in core, as the domain repos do, would avoid it until xarray can be upgraded.
The repo's own brainio/tests/test_packaging.py::test_write_netcdf (and test_package_data_assembly, test_package_extras, test_compression) fails the same way in a fresh env with pandas 3.0.6, and passes after pip install 'pandas<3'. CI doesn't see it because the Jenkins env has pandas 2.
Activity
albertlieyingadrian commentedon Nov 13, 2026
The repo's own
brainio/tests/test_packaging.py::test_write_netcdf(andtest_package_data_assembly,test_package_extras,test_compression) fails the same way in a fresh env with pandas 3.0.6, and passes afterpip install 'pandas<3'. CI doesn't see it because the Jenkins env has pandas 2.fix(brainio): accept bucket/folder names in upload_to_s3 like the s3 …