Hello, I am having issues loading saved custom parametric type using JLD in Julia 1.5.
The following example:
using JLD
using StaticArrays
struct MyType{N}
a::SVector{N, Int64}
end
MyType{2}(SA[1,2])
JLD.save("test.jld", "s", MyType{2}(SA[1,2]))
load("test.jld")
produces this error:
ERROR: stored type MyType{2} does not match currently loaded type
I get the same error if the parameter is the type and not the size.
Everything works fine when using the StaticArray directly:
Probabably, but since the issue does not come up with generic parametric types, couldn't there be something special about the SVectors that's triggering the error in JLD?
Hello, I am having issues loading saved custom parametric type using JLD in Julia 1.5.
The following example:
produces this error:
I get the same error if the parameter is the type and not the size.
Everything works fine when using the StaticArray directly:
Similarly, using custom nested parametric types works fine as well:
What could be causing this? I get this error only with my own parametric types using StaticArrays. I have posted this also in JLD: https://github.com/JuliaIO/JLD.jl/issues/294