-
Notifications
You must be signed in to change notification settings - Fork 59
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
Accept float in days_over_precip_thresh #258
Conversation
Pull Request Test Coverage Report for Build 1094
💛 - Coveralls |
Co-Authored-By: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
Is the name |
@Zeitsperre Are the azure failures expected ? Is this something we really want to invest in ? |
@huard Yeah, I'm thinking it might be worthwhile to move from Azure as well. The goal was simply to perform the same sort of platform checks as macOS. I learned a few weeks ago that Travis CI recently added a Windows image. I'd much rather use their infra. I'll open an issue for replacing Azure with Travis CI for Windows builds. |
@tlogan2000 Could you take a look ? |
@huard The Azure builds are no longer valid. There was a misconfiguration in their .yaml and I didn't see the value in investing time into making them all work. I feel like we can wait for Travis CI to create some Windows images. For this PR, I would simply ignore those checks. Everything is passing on Travis. |
I will take a look at this soon... sorry it slipped through a crack I think |
@tlogan2000 Removed support for str arguments, thanks for catching this. Found a small bug in xarray while writing new tests. A PR is submitted pydata/xarray#3305 |
@huard with the roll back of float/string input what new features does this PR still include? Is it the doy_resample()? |
Yes, that's mostly it. I'd call it a clean-up of how doy percentiles are handled. Temperature indicators require a doy percentile, while precip percentiles also accept a single "annual" value. |
Would an example of using an annual percentile DataArray (i.e. not using percentile_doy()) be useful
but users could also send in a 2d array of the annual percentile (NB* not sure of my syntax here)
|
Sounds good |
Made change in docstring. Won't really work as-is however until xarray 0.13 because keep_attrs does not yet work for DataArray.quantiles. |
@huard if you want to update the history and |
@Zeitsperre |
The tagging is re-enabled on another PR since I realize it doesn't cause commits to fail (only I had it turned off since it was conflicting with pre-commit. It turns out that the |
Pull Request Checklist:
After merging to master and before closing the branch:
master
branchWhat kind of change does this PR introduce?
Add support for simple annual percentiles.
Does this PR introduce a breaking change?
No
Other information:
TODO
This PR fixes #79