-
Notifications
You must be signed in to change notification settings - Fork 86
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
Add support for facet ranges #76
Conversation
Preparing this for a pull request.
Thanks for this, this is really useful, and looks well written. A few comments:
|
Sure, I'd be happy to, but I'm swamped this week. I will try to fix that stuff up as soon as I can. Cheers, |
There was 2 layers of error: first there were a handful of test errors due to comparing naive and aware datetimes. I can't tell exactly what the purpose of these tests was supposed to be (why compare a naive date to an aware date in the first place?) but I fixed it by modifying the test to make the naive date an aware date - if necessary - before comparison. After fixing that, there was another test failure revealed where 34.123Z was yielding 129999 microseconds instead of 130000 microseconds, due to lack of floating point precision in dates.py:datetime_factory. I modified this function to use integer math instead in order to get a precise result.
Toby, I have this done, but I ended up squashing commits so I'm going to close this and open a new pull request. |
Charles Nagy has a fork that has nice support for facet ranges. I extended his fork to support date ranges in facets.
Because Nagy's fork has diverged so far from yours, I fast-forwarded to the latest version of master in your repository, then cherry picked the relevant commits from his repo and my repo. Therefore, this should merge cleanly!
It includes updated documentation, too. Please let me know if there's anything I should change before you will merge this.
Thanks,