Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When date range is inferior to the sampling range, get the min-max values on both sides #76

Open
karlcow opened this issue Dec 7, 2018 · 2 comments
Labels
bug Something isn't working

Comments

@karlcow
Copy link
Member

karlcow commented Dec 7, 2018

Currently the slice API is sending the data for the range which has been requested. If we are in between two data points, the slice is empty. That's not right. Data exists but there are not represented.

Let's say there is
t₀ < t₁(d) < t₂ < t₃ < t₄(d) < t₅

  • t₁(d) and t₄(d) are data points.
  • t₂ and t₃ represents the request range

We request the range from=t₂&to=t₃, where there is no data point, it would probably be good to get the data from t₁(d) and t₄(d) and return that in the slice.

@karlcow karlcow added the bug Something isn't working label Dec 7, 2018
@karlcow
Copy link
Member Author

karlcow commented Jan 24, 2019

This is a bit complex to implement to be effective, but we can probably do it.

@karlcow
Copy link
Member Author

karlcow commented Jan 25, 2019

So I tried today to make it as simple as possible without too much recursion. I think we need to wait for the DB, that would be a lot more effective than trying to manage list slicing. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant