Repository navigation
Conversation
Updated version constraints for spm-runtime dependencies to allow patch versions.
|
Tests are failing because on R2026b, the matlab python sdk returns an empty list ( The only solution I see is catch all cells (even 1D) in It means recompiling the CTFs though. |
|
So this is specifically a 2026b bug (might also be there in 2026a but I haven't checked. It wasn't there in 2025b) where empty numeric arrays in a cell are returned as empty lists on the python side. And I didn't think through: we cannot convert 1d cells to dict (the data field will still be a 1d cell with the same problem) so we need to catch empty arrays. Empty arrays are kept as matlab array when they are in a dict, they only get converted to lists when they are in a cell. In mpython#9, I encoded them in a dict with It does mean that CTFs built with the proposed changes will not be runnable on old versions of mpython-core. But I don't think we'll recompile SPM25 anyway. @johmedr Could you check that mpython#9 makes sense? Once merged, I'll trigger a new batch of compilation on spm-runtime and update ther version pins here. |
|
Good catch ! I have merged your fix in mpython#9. |
These are needed to include the fix for "cell of empty arrays" on MATLAB R2026b.
I have generated the new wrapper from SPM26.10.1, bumped the version in _version.py to 26.10.1, and updated the dependencies in pyproject.toml so that it's ready to merge.
New docstrings are also raw (
r"") to properly escape some characters from equations (e.g.\grad).@balbasty, does that seem good to you and does it track recent changes to spm-runtime?