Skip to content

broken example documentation #581

@lazarusA

Description

@lazarusA

since #578 this example is now broken.

┌ Error: failed to run `@example` block in docs/src/UserGuide/compute.md:338-347
│ ```@example outdims
│ output_time = XOutput(yax_test.time)
│ output_flat = XOutput()
│ 
│ r1, r2, r3 = xmap(many_to_many, yax_test⊘:time, yax_2d, yax_test⊘"time",
│     output =(output_time, output_time, output_flat), inplace=true);
│ dsout = Dataset(many_to_many_two=r2)
│ 
│ compute_to_zarr(dsout, "test_mm.zarr", overwrite=true)
│ ```
│   exception =
│    KeyError: key nothing not found
│    Stacktrace:
│      [1] getindex(h::OrderedCollections.OrderedDict{Symbol, YAXArray}, key::Nothing)
│        @ OrderedCollections ~/.julia/packages/OrderedCollections/Xihhq/src/ordered_dict.jl:387
│      [2] (::YAXArrays.Xmap.var"#91#92"{DiskArrayEngine.ExecutionPlan{4, DiskArrayEngine.ProductArray{NTuple{4, UnitRange}, 4, NTuple{4, DiskArrays.RegularChunks}}}, Dataset, Dict{Int64, Int64}, Dict{Any, Any}})(oid::Int64, ospec::@NamedTuple{lw::DiskArrayEngine.LoopWindows{DiskArrayEngine.ProductArray{Tuple{Base.OneTo{Int64}, Int64, Int64, Int64}, 4, Tuple{DiskArrayEngine.Window{Base.OneTo{Int64}, Vector{Base.OneTo{Int64}}, DiskArrayEngine.Increasing, DiskArrayEngine.NonOverlapping, DiskArrayEngine.Dense}, Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}, (1, 2, 3, 4)}, chunks::NTuple{4, Nothing}, ismem::Bool})
│        @ YAXArrays.Xmap ~/work/YAXArrays.jl/YAXArrays.jl/src/DAT/xmap.jl:655
│      [3] #Generator##0
│        @ ./generator.jl:37 [inlined]
│      [4] iterate
│        @ ./generator.jl:48 [inlined]
│      [5] collect(itr::Base.Generator{Base.Iterators.Zip{Tuple{Vector{Int64}, Tuple{@NamedTuple{lw::DiskArrayEngine.LoopWindows{DiskArrayEngine.ProductArray{Tuple{Base.OneTo{Int64}, Int64, Int64, Int64}, 4, Tuple{DiskArrayEngine.Window{Base.OneTo{Int64}, Vector{Base.OneTo{Int64}}, DiskArrayEngine.Increasing, DiskArrayEngine.NonOverlapping, DiskArrayEngine.Dense}, Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}, (1, 2, 3, 4)}, chunks::NTuple{4, Nothing}, ismem::Bool}, @NamedTuple{lw::DiskArrayEngine.LoopWindows{DiskArrayEngine.ProductArray{Tuple{Base.OneTo{Int64}, Int64, Int64, Int64}, 4, Tuple{DiskArrayEngine.Window{Base.OneTo{Int64}, Vector{Base.OneTo{Int64}}, DiskArrayEngine.Increasing, DiskArrayEngine.NonOverlapping, DiskArrayEngine.Dense}, Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}, (1, 2, 3, 4)}, chunks::NTuple{4, Nothing}, ismem::Bool}, @NamedTuple{lw::DiskArrayEngine.LoopWindows{DiskArrayEngine.ProductArray{NTuple{4, Int64}, 4, NTuple{4, Base.OneTo{Int64}}}, (1, 2, 3, 4)}, chunks::NTuple{4, Nothing}, ismem::Bool}}}}, Base.var"#Generator##0#Generator##1"{YAXArrays.Xmap.var"#91#92"{DiskArrayEngine.ExecutionPlan{4, DiskArrayEngine.ProductArray{NTuple{4, UnitRange}, 4, NTuple{4, DiskArrays.RegularChunks}}}, Dataset, Dict{Int64, Int64}, Dict{Any, Any}}}})
│        @ Base ./array.jl:790
│      [6] map(f::Function, it::Vector{Int64}, iters::Tuple{@NamedTuple{lw::DiskArrayEngine.LoopWindows{DiskArrayEngine.ProductArray{Tuple{Base.OneTo{Int64}, Int64, Int64, Int64}, 4, Tuple{DiskArrayEngine.Window{Base.OneTo{Int64}, Vector{Base.OneTo{Int64}}, DiskArrayEngine.Increasing, DiskArrayEngine.NonOverlapping, DiskArrayEngine.Dense}, Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}, (1, 2, 3, 4)}, chunks::NTuple{4, Nothing}, ismem::Bool}, @NamedTuple{lw::DiskArrayEngine.LoopWindows{DiskArrayEngine.ProductArray{Tuple{Base.OneTo{Int64}, Int64, Int64, Int64}, 4, Tuple{DiskArrayEngine.Window{Base.OneTo{Int64}, Vector{Base.OneTo{Int64}}, DiskArrayEngine.Increasing, DiskArrayEngine.NonOverlapping, DiskArrayEngine.Dense}, Base.OneTo{Int64}, Base.OneTo{Int64}, Base.OneTo{Int64}}}, (1, 2, 3, 4)}, chunks::NTuple{4, Nothing}, ismem::Bool}, @NamedTuple{lw::DiskArrayEngine.LoopWindows{DiskArrayEngine.ProductArray{NTuple{4, Int64}, 4, NTuple{4, Base.OneTo{Int64}}}, (1, 2, 3, 4)}, chunks::NTuple{4, Nothing}, ismem::Bool}})
│        @ Base ./abstractarray.jl:3526
│      [7] (::YAXArrays.Xmap.var"#89#90"{Float64, Nothing, Dataset, Dict{Int64, Int64}, Dict{Any, Any}, DiskArrayEngine.MwopGraph})(conn::DiskArrayEngine.MwopConnection)
│        @ YAXArrays.Xmap ~/work/YAXArrays.jl/YAXArrays.jl/src/DAT/xmap.jl:641
│      [8] iterate
│        @ ./generator.jl:48 [inlined]
│      [9] _collect(c::Vector{Any}, itr::Base.Generator{Vector{Any}, YAXArrays.Xmap.var"#89#90"{Float64, Nothing, Dataset, Dict{Int64, Int64}, Dict{Any, Any}, DiskArrayEngine.MwopGraph}}, ::Base.EltypeUnknown, isz::Base.HasShape{1})
│        @ Base ./array.jl:810
│     [10] collect_similar(cont::Vector{Any}, itr::Base.Generator{Vector{Any}, YAXArrays.Xmap.var"#89#90"{Float64, Nothing, Dataset, Dict{Int64, Int64}, Dict{Any, Any}, DiskArrayEngine.MwopGraph}})
│        @ Base ./array.jl:732
│     [11] map(f::Function, A::Vector{Any})
│        @ Base ./abstractarray.jl:3372
│     [12] compute_to_zarr(ods::Dataset, path::String; max_cache::Float64, custom_loopranges::Nothing, overwrite::Bool)
│        @ YAXArrays.Xmap ~/work/YAXArrays.jl/YAXArrays.jl/src/DAT/xmap.jl:633
│     [13] top-level scope
│        @ compute.md:346
│     [14] eval(m::Module, e::Any)
│        @ Core ./boot.jl:489
│     [15] #61
│        @ ~/.julia/packages/Documenter/AXNMp/src/expander_pipeline.jl:879 [inlined]
│     [16] cd(f::Documenter.var"#61#62"{Module, Expr}, dir::String)
│        @ Base.Filesystem ./file.jl:112
│     [17] (::Documenter.var"#59#60"{Documenter.Page, Module, Expr})()
│        @ Documenter ~/.julia/packages/Documenter/AXNMp/src/expander_pipeline.jl:878
│     [18] (::IOCapture.var"#12#13"{Type{InterruptException}, Documenter.var"#59#60"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
│        @ IOCapture ~/.julia/packages/IOCapture/MR051/src/IOCapture.jl:170
│     [19] with_logstate(f::IOCapture.var"#12#13"{Type{InterruptException}, Documenter.var"#59#60"{Documenter.Page, Module, Expr}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}}, logstate::Base.CoreLogging.LogState)
│        @ Base.CoreLogging ./logging/logging.jl:542
│     [20] with_logger(f::Function, logger::Base.CoreLogging.ConsoleLogger)
│        @ Base.CoreLogging ./logging/logging.jl:653
│     [21] capture(f::Documenter.var"#59#60"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool, passthrough::Bool, capture_buffer::IOBuffer, io_context::Vector{Any})
│        @ IOCapture ~/.julia/packages/IOCapture/MR051/src/IOCapture.jl:167
│     [22] runner(::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document)
│        @ Documenter ~/.julia/packages/Documenter/AXNMp/src/expander_pipeline.jl:877
└ @ Documenter ~/.julia/packages/Documenter/AXNMp/src/utilities/utilities.jl:47

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions