You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation of index_from_time(sample_rate, span::TimeSpan) makes an undocumented choice of semantics, which is to round-down the endpoints, and ensure the right endpoint of the span is excluded.
What do I mean this is undocumented? Well,
integer index of the most recent sample taken at sample_time
documents the index_from_time(sample_rate, time) method. That isn't sufficient to learn the semantics of the span method, since we do something other than simply call index_from_time on each endpoint, re
The current implementation of
index_from_time(sample_rate, span::TimeSpan)
makes an undocumented choice of semantics, which is to round-down the endpoints, and ensure the right endpoint of the span is excluded.What do I mean this is undocumented? Well,
documents the
index_from_time(sample_rate, time)
method. That isn't sufficient to learn the semantics of thespan
method, since we do something other than simply callindex_from_time
on each endpoint, reTimeSpans.jl/src/TimeSpans.jl
Line 237 in eb8b794
and we only document the
span
method asTimeSpans.jl/src/TimeSpans.jl
Line 221 in eb8b794
which leaves it unclear exactly what
UnitRange
we're talking about.Originally posted by @ericphanson in #26 (comment)
The text was updated successfully, but these errors were encountered: