-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### What kind of change does this PR introduce? * Remove `lmoments3` from xclim's dependencies. * Accept `rv_continuous` instances for the `dist` arguments of the statistical indices ### Does this PR introduce a breaking change? Yes. Passing a mere string and `method='PWM'` is now broken. It will raise a ValueError with a message asking to pass an instance of `lmoments3` instead. This also makes some functions awkward to use. Before, we relied on the `scipy_dist` attribute of `params` to retrieve the distribution when computing statistics. As one can now pass an object that has nothing to do with scipy, those functions (`parametric_quantile` for example) must now also accept the dist as an argument. ### Other information: See Ouranosinc/lmoments3#12. I kinda cheated and made it so the `dist` argument would show up as a "String" parameter to the indicator. This only changes the metadata, distributions objects can still be passed to indicators.
- Loading branch information
Showing
9 changed files
with
142 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.