Support MATLAB Table and Timetable saved with MATLAB >2025a - #67
foreverallama wants to merge 6 commits into
Conversation
|
MATLAB release notes states the following:
I'll be checking with timetable as well before proceeding further with this PR. Regarding the compatibility, I tried out the following: I was surprisingly able to load this with the full variable name with MATLAB 2025b. Not sure how the behaviour would change with earlier releases (<2025a) though. Hopefully it doesn't error out and just truncates the length. |
|
Timetable has also bumped to version 7, with the same changes as Table. This PR now supports loading both Tables and Timetables saved with MATLAB >2025a. The tests should fail because of NumPy 2.5, so I'll keep this open till that is fixed. |
Since 2025a, MATLAB increased the variable name character limit for their tables to 2048 characters. This is accompanied by new properties
useVariableNames2048, with the legacy field carrying a truncated name.This PR bumps the load version for MATLAB tables to v5 by supporting these new fields with long variable names and dimension names. The save version remains v4.
As a side note, this probably means that v4 does not support long variable names. I am yet to test this out by saving from Python with Table v4 and loading back in MATLAB.