From 1ac2dff147384605a4ead43c79a8fd7d4fd6f15f Mon Sep 17 00:00:00 2001 From: Lazaro Alonso Date: Fri, 13 Dec 2024 09:27:17 +0100 Subject: [PATCH] no Ti check --- src/Cubes/Cubes.jl | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Cubes/Cubes.jl b/src/Cubes/Cubes.jl index 271bfa6a..ac1c2e6a 100644 --- a/src/Cubes/Cubes.jl +++ b/src/Cubes/Cubes.jl @@ -480,14 +480,7 @@ function Base.getindex(a::YAXArray, args::DD.Dimension...; kwargs...) for (k,v) in kwargsdict d = getAxis(k,a) if d !== nothing - if d isa DD.Ti - if v isa UnitRange{Int} - v = Date(first(v))..Date(last(v),12,31) - end - d2[:time] = v - else - d2[DD.name(d)] = v - end + d2[DD.name(d)] = v else d2[k] = v end