-
Notifications
You must be signed in to change notification settings - Fork 78
Closed
Description
I tried to load an object that I converted to a struct. The struct is correctly parsed into a Dict, but the table itself gets converted into another Dict with the "S0/1/2" & "arr" keys instead of the table it self. In the exampe I created a simple table, but it happens to any table I think, at least also my more complex table ends up in this same format.
julia> using MAT
julia> file = matread(raw"path_to\test_data.mat")
Dict{String, Any} with 2 entries:
"" => UInt8[0x00 0x01 … 0x00 0x00]
"s" => Dict{String, Any}("data"=>Dict{String, Any}("s1"=>Int8[77, 67, 79, 83], "arr"=>("", UInt32[0xdd000000; 0x00000002; … ; 0x00000001; 0x00000002;;]), "s0"=>Int8[], "s2"=>Int8[116, 97, 98, 108, 101]))
julia> file["s"]["data"]
Dict{String, Any} with 4 entries:
"s1" => Int8[77, 67, 79, 83]
"arr" => ("", UInt32[0xdd000000; 0x00000002; … ; 0x00000001; 0x00000002;;])
"s0" => Int8[]
"s2" => Int8[116, 97, 98, 108, 101]mkitti, lmulder1991 and Tambup
Metadata
Metadata
Assignees
Labels
No labels