Skip to content

Commit

Permalink
use Ti also for dataset axis names (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
meggart authored Jul 26, 2024
1 parent 8307db1 commit 664590f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/DAT/DAT.jl
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,6 @@ function runLoop(dc::DATConfig, showprog)
if dc.ntr[1] > 1
innerLoop_threaded(r, args...)
else
@show "Running nonthreaded"
innerLoop(r,args...)
end
writeoutars(dc, r, outcaches)
Expand Down
2 changes: 1 addition & 1 deletion src/DatasetAPI/Datasets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ function open_dataset(g; driver = :all)
end
gatts = YAXArrayBase.get_global_attrs(g)
gatts = Dict{String,Any}(string(k)=>v for (k,v) in gatts)
sdimlist = Dict(Symbol(k) => v.ax for (k, v) in dimlist)
sdimlist = Dict(DD.name(v.ax) => v.ax for (k, v) in dimlist)
Dataset(allcubes, sdimlist,gatts)
end
#Base.getindex(x::Dataset; kwargs...) = subsetcube(x; kwargs...)
Expand Down
2 changes: 1 addition & 1 deletion test/Datasets/datasets.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ end
ds = open_dataset("test.mock")
@test size(ds.Var1) == (10, 5, 2)
@test size(ds.Var2) == (10, 5)
@test all(in(keys(ds.axes)), (:time, :d2, :d3))
@test all(in(keys(ds.axes)), (:Ti, :d2, :d3))
ar = Cube(ds)
@test ar isa YAXArray
@test size(ar) == (10, 5, 2, 2)
Expand Down

0 comments on commit 664590f

Please sign in to comment.