Skip to content

Commit 664590f

Browse files
authored
use Ti also for dataset axis names (#418)
1 parent 8307db1 commit 664590f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/DAT/DAT.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,6 @@ function runLoop(dc::DATConfig, showprog)
727727
if dc.ntr[1] > 1
728728
innerLoop_threaded(r, args...)
729729
else
730-
@show "Running nonthreaded"
731730
innerLoop(r,args...)
732731
end
733732
writeoutars(dc, r, outcaches)

src/DatasetAPI/Datasets.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ function open_dataset(g; driver = :all)
321321
end
322322
gatts = YAXArrayBase.get_global_attrs(g)
323323
gatts = Dict{String,Any}(string(k)=>v for (k,v) in gatts)
324-
sdimlist = Dict(Symbol(k) => v.ax for (k, v) in dimlist)
324+
sdimlist = Dict(DD.name(v.ax) => v.ax for (k, v) in dimlist)
325325
Dataset(allcubes, sdimlist,gatts)
326326
end
327327
#Base.getindex(x::Dataset; kwargs...) = subsetcube(x; kwargs...)

test/Datasets/datasets.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ end
215215
ds = open_dataset("test.mock")
216216
@test size(ds.Var1) == (10, 5, 2)
217217
@test size(ds.Var2) == (10, 5)
218-
@test all(in(keys(ds.axes)), (:time, :d2, :d3))
218+
@test all(in(keys(ds.axes)), (:Ti, :d2, :d3))
219219
ar = Cube(ds)
220220
@test ar isa YAXArray
221221
@test size(ar) == (10, 5, 2, 2)

0 commit comments

Comments
 (0)