Hello together,
I am trying to save a big BigFloat Array to a file (The format does not matter to me).
HDF5 hasn’t any function that would accept BigFloat Datatype, JLD is incredibly slow on saving and loading the array and JLD2 standard functions for some reason fail to load the *.jld2 again throwing the following Error
@JLD2.load (dataPath) data
ERROR: ArgumentError: cannot parse "" as BigFloat
Stacktrace:
[1] _parse_failure(::Type, ::String, ::Int64, ::Int64) at ./parse.jl:360 (repeats 2 times)
[2] tryparse_internal at ./parse.jl:356 [inlined]
[3] parse at ./parse.jl:366 [inlined]
[4] rconvert at /home/benejo/.julia/packages/JLD2/KjBIK/src/data.jl:809 [inlined]
[5] jlconvert at /home/benejo/.julia/packages/JLD2/KjBIK/src/data.jl:576 [inlined]
[6] macro expansion at /home/benejo/.julia/packages/JLD2/KjBIK/src/dataio.jl:70 [inlined]
[7] macro expansion at ./simdloop.jl:73 [inlined]
[8] read_array!(::Array{BigFloat,2}, ::JLD2.JLDFile{JLD2.MmapIO}, ::JLD2.ReadRepresentation{BigFloat,JLD2.CustomSerialization{String,JLD2.Vlen{String}}}) at /home/benejo/.julia/packages/JLD2/KjBIK/src/dataio.jl:68
[9] read_array(::JLD2.JLDFile{JLD2.MmapIO}, ::JLD2.ReadDataspace, ::JLD2.ReadRepresentation{BigFloat,JLD2.CustomSerialization{String,JLD2.Vlen{String}}}, ::Int64, ::UInt16, ::JLD2.RelOffset, ::Array{JLD2.ReadAttribute,1}) at /home/benejo/.julia/packages/JLD2/KjBIK/src/datasets.jl:323
[10] read_data(::JLD2.JLDFile{JLD2.MmapIO}, ::JLD2.ReadRepresentation{BigFloat,JLD2.CustomSerialization{String,JLD2.Vlen{String}}}, ::Array{JLD2.ReadAttribute,1}) at /home/benejo/.julia/packages/JLD2/KjBIK/src/datasets.jl:173
[11] read_data(::JLD2.JLDFile{JLD2.MmapIO}, ::JLD2.ReadDataspace, ::UInt8, ::Int64, ::Int64, ::Int64, ::UInt16, ::JLD2.RelOffset, ::Array{JLD2.ReadAttribute,1}) at /home/benejo/.julia/packages/JLD2/KjBIK/src/datasets.jl:149
[12] load_dataset(::JLD2.JLDFile{JLD2.MmapIO}, ::JLD2.RelOffset) at /home/benejo/.julia/packages/JLD2/KjBIK/src/datasets.jl:92
[13] getindex(::JLD2.Group{JLD2.JLDFile{JLD2.MmapIO}}, ::String) at /home/benejo/.julia/packages/JLD2/KjBIK/src/groups.jl:108
[14] read(::JLD2.JLDFile{JLD2.MmapIO}, ::String) at /home/benejo/.julia/packages/JLD2/KjBIK/src/JLD2.jl:326
[15] #293 at /home/benejo/.julia/packages/JLD2/KjBIK/src/loadsave.jl:77 [inlined]
[16] #jldopen#31(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(Main, Symbol("##293#294")), ::String) at /home/benejo/.julia/packages/JLD2/KjBIK/src/loadsave.jl:4
[17] jldopen(::Function, ::String) at /home/benejo/.julia/packages/JLD2/KjBIK/src/loadsave.jl:2
[18] top-level scope at /home/benejo/.julia/packages/JLD2/KjBIK/src/loadsave.jl:76
Has anybody experience with saving BigFloat to a file and could help me here?
Greetings,
GoodNews