Skip to content
Snippets Groups Projects
Commit 4dac1558 authored by Brian Groenke's avatar Brian Groenke
Browse files

Fix bug in TimeSeriesForcing

parent 210b135d
No related branches found
No related tags found
1 merge request!55Rename LandModel type to Tile
......@@ -38,7 +38,7 @@ Get interpolated forcing value at t seconds from t0.
"""
(forcing::TimeSeriesForcing)(t::Number) = forcing.interp(t) # extract interpolation and evaluate
Base.getindex(f::TimeSeriesForcing, i) = forcing.tarray[i]
Base.getindex(forcing::TimeSeriesForcing, i) = forcing.tarray[i]
function Base.getindex(f::TimeSeriesForcing{T,A,I}, range::StepRange{DateTime,TStep}) where {T,A,I,TStep}
order(::Interpolations.GriddedInterpolation{T1,N,T2,Gridded{Torder}}) where {T1,N,T2,Torder} = Torder()
subseries = f.tarray[range]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment