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

JSON codec is missing #166

Open
agoodm opened this issue Sep 25, 2024 · 0 comments
Open

JSON codec is missing #166

agoodm opened this issue Sep 25, 2024 · 0 comments

Comments

@agoodm
Copy link

agoodm commented Sep 25, 2024

For object arrays which use the json codec, Zarr.jl not only cannot currently read them, but also cannot load a group at all if just one of the arrays within it has a codec that's not supported by Zarr.jl:

julia> z = zopen("s3://nasa-chirp-tiling/SNDR_chirp_v2_tile_L1_AQ_J_v02_48a/")
ERROR: KeyError: key "json2" not found
Stacktrace:
  [1] getindex(h::Dict{String, Type}, key::String)
    @ Base ./dict.jl:498
  [2] (::Zarr.var"#60#61")(f::Dict{String, Any})
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/Filters.jl:13
  [3] iterate
    @ ./generator.jl:47 [inlined]
  [4] _collect(c::Vector{Any}, itr::Base.Generator{Vector{Any}, Zarr.var"#60#61"}, ::Base.EltypeUnknown, isz::Base.HasShape{1})
    @ Base ./array.jl:854
  [5] collect_similar(cont::Vector{Any}, itr::Base.Generator{Vector{Any}, Zarr.var"#60#61"})
    @ Base ./array.jl:763
  [6] map(f::Function, A::Vector{Any})
    @ Base ./abstractarray.jl:3285
  [7] getfilters(d::Dict{String, Any})
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/Filters.jl:12
  [8] Zarr.Metadata(d::Dict{String, Any}, fill_as_missing::Bool)
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/metadata.jl:190
  [9] Zarr.Metadata(s::String, fill_as_missing::Bool)
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/metadata.jl:181
 [10] getmetadata(s::S3Store, p::String, fill_as_missing::Bool)
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/Storage/Storage.jl:89
 [11] ZArray(s::S3Store, mode::String, path::String; fill_as_missing::Bool)
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/ZArray.jl:110
 [12] ZArray
    @ ~/.julia/packages/Zarr/3QSdj/src/ZArray.jl:109 [inlined]
 [13] zopen_noerr(s::S3Store, mode::String; consolidated::Bool, path::String, lru::Int64, fill_as_missing::Bool)
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:52
 [14] ZGroup(s::S3Store, mode::String, path::String; fill_as_missing::Bool)
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:23
 [15] ZGroup
    @ ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:17 [inlined]
 [16] zopen_noerr(s::S3Store, mode::String; consolidated::Bool, path::String, lru::Int64, fill_as_missing::Bool)
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:54
 [17] #zopen#100
    @ ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:95 [inlined]
 [18] zopen(s::String, mode::String; kwargs::@Kwargs{})
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:110
 [19] zopen
    @ ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:108 [inlined]
 [20] zopen(s::String)
    @ Zarr ~/.julia/packages/Zarr/3QSdj/src/ZGroup.jl:108
 [21] top-level scope
    @ REPL[13]:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant