Skip to content

Commit

Permalink
no Ti check
Browse files Browse the repository at this point in the history
  • Loading branch information
lazarusA committed Dec 13, 2024
1 parent f845879 commit 1ac2dff
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/Cubes/Cubes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ac2dff

Please sign in to comment.