Skip to content

MAT_v4: Return variable name for zero-dimensional arrays#241

Open
foreverallama wants to merge 2 commits into
JuliaIO:masterfrom
foreverallama:matv4
Open

MAT_v4: Return variable name for zero-dimensional arrays#241
foreverallama wants to merge 2 commits into
JuliaIO:masterfrom
foreverallama:matv4

Conversation

@foreverallama
Copy link
Copy Markdown
Contributor

The fix reads and returns the variable name for zero-dimensional arrays. Variable names are written to MAT-files regardless of if they are empty or not. It also appears that the null terminator is not added for this case as well (may be related to #202 ?)

This was not accounted for previously, resulting in EOF error as it attempts to read the next variable header with only the name of the previous variable in the stream.

Fixes #240

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EOFError when reading valid MATLAB v4 file with zero-sized dimension (Nx0 matrix)

1 participant