def GetInterval(self):
    """Returns the size of the current interval in seconds (min, max)."""
    interval = self._height * (self._roc_max + self._roc_slope * self._last_pos[0])
    y_ratio = float(self._last_pos[1]) / float(self._height)
    return (self._cur_time - y_ratio * interval,
            self._cur_time + (1.0 - y_ratio) * interval)
dataset/ETHPy150Open viewfinderco/viewfinder/clients/experimental/viewfinder.py/VFTime.GetInterval/original