File tree 3 files changed +8
-1
lines changed
3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ function m_read(g::HDF5.Group)
229
229
@warn " MATLAB $mattype values are currently not supported"
230
230
return missing
231
231
else
232
- error ( " Cannot read from a non-struct group, type was $mattype " )
232
+ @warn " Unknown non-struct group of type $mattype detected; attempting to read as struct "
233
233
end
234
234
end
235
235
if haskey (g, " MATLAB_fields" )
Original file line number Diff line number Diff line change @@ -230,3 +230,10 @@ let objtestfile = "struct_table_datetime.mat"
230
230
@test " testDatetime" in keys (vars)
231
231
@test ismissing (vars[" testDatetime" ])
232
232
end
233
+
234
+ # test reading of old-style Matlab object in v7.3 format
235
+ let objtestfile = " old_class.mat"
236
+ vars = matread (joinpath (dirname (@__FILE__ ), " v7.3" , objtestfile))
237
+ @test " tc_old" in keys (vars)
238
+ @test " foo" in keys (vars[" tc_old" ])
239
+ end
You can’t perform that action at this time.
0 commit comments