Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] master from JuliaIO:master #23

Merged
merged 3 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
with:
version: '1'
- name: CacheArtifacts
uses: actions/cache@v3
uses: actions/cache@v4
env:
cache-name: cache-artifacts
with:
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "MAT"
uuid = "23992714-dd62-5051-b70f-ba57cb901cac"
version = "0.10.6"
version = "0.10.7"

[deps]
BufferedStreams = "e1450e63-4bb3-523b-b2a4-4ffa8c0fd77d"
Expand Down
2 changes: 1 addition & 1 deletion src/MAT_HDF5.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function m_read(g::HDF5.Group)
@warn "MATLAB $mattype values are currently not supported"
return missing
else
error("Cannot read from a non-struct group, type was $mattype")
@warn "Unknown non-struct group of type $mattype detected; attempting to read as struct"
end
end
if haskey(g, "MATLAB_fields")
Expand Down
7 changes: 7 additions & 0 deletions test/read.jl
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,10 @@ let objtestfile = "struct_table_datetime.mat"
@test "testDatetime" in keys(vars)
@test ismissing(vars["testDatetime"])
end

# test reading of old-style Matlab object in v7.3 format
let objtestfile = "old_class.mat"
vars = matread(joinpath(dirname(@__FILE__), "v7.3", objtestfile))
@test "tc_old" in keys(vars)
@test "foo" in keys(vars["tc_old"])
end
Binary file added test/v7.3/old_class.mat
Binary file not shown.
Loading