This function at line 1239 gets the index of the sub-interval that h + hoffset lies in, when the interval [maxtime, mintime] is chopped up into FGY_RESOLUTION pieces.
This means that we have FGY_RESOLUTION interval boundaries, which means FGY_RESOLUTION - 1 intervals. This does not agree with the get.index function, which assumes there are FGY_RESOLUTION intervals.
The error introduced here is obviously negligible, so keeping the original behaviour for now.
This function at line 1239 gets the index of the sub-interval that
h + hoffset
lies in, when the interval[maxtime, mintime]
is chopped up intoFGY_RESOLUTION
pieces.But below (line 1311), we define the time axis as a sequence of length
FGY_RESOLUTION
to be (I think) the interval boundaries.This means that we have
FGY_RESOLUTION
interval boundaries, which meansFGY_RESOLUTION - 1
intervals. This does not agree with theget.index
function, which assumes there areFGY_RESOLUTION
intervals.The error introduced here is obviously negligible, so keeping the original behaviour for now.