-
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
Add partial support for L-Moments #526
Conversation
Pull Request Test Coverage Report for Build 2191
💛 - Coveralls |
@Zeitsperre How do you suggest we deal with the lmoments3 dependency? Since it is unmaintained, I'm not sure it's a good idea to include this "officially" in the requirements, but we probably still want to run it in the travis test suite. |
Fully agree that adding unmaintained libraries to the requirements is bad form. Plenty of ways forward though. There's a couple of ways we could deal with it from the CI side:
In terms of how to proceed requirements-wise, we can treat functions reliant on it the same way we treat plotting functions, (IE creating a global variable like LM3_INSTALLED in the module that uses it, aborting functions that need it when it isn't there). If we want users to be able to run tests locally with lmoments3 installed, we would put the dependency in the |
Whichever way forward you want to try, let me know and I can push some changes here. |
@Zeitsperre I suggest we go with |
@aulemahal Combined fit and fit_pwm into one single function. |
Co-authored-by: Pascal Bourgault <[email protected]>
Woupelaye. The build failures are due to OpenHydrology/lmoments3#6, which is open and inactive since june 2019... |
Ah right, it's the develop branch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change comment to use develop branch.
Added in the formatting exceptions. Having the import in a function with no space afterwards breaks two hooks, haha. |
Pull Request Checklist:
bumpversion (minor / major / patch)
has been called on this branchgit push --tags
)What kind of change does this PR introduce?
Adds a
pwm_fit
method, estimating statistical distribution parameters from a sample using probability weighted moments.Only a few distributions are supported.
Does this PR introduce a breaking change?
No.
Other information:
Requires the
lmoments3
library, but it is unmaintained anymore. It's not clear if we should add it as a dependency or work on a more robust solution. Needs to be installed from master because the last release is not compatible with recent scipy releases.