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

MAINT: stats: Deprecate frechet_l and frechet_r. #7838

Merged
merged 3 commits into from
Sep 9, 2017

Conversation

WarrenWeckesser
Copy link
Member

Fix for #3258. This PR is an alternative to #3275. The text of the frechet distribution docstring was taken from that PR, with only a little editing. Many thanks to @ligon for getting the work started.

The old names frechet_l and frechet_r, which were actually what are conventionally called the Weibull distribution, are deprecated. To deprecate these, the deprecation decorator is applied to each public method. The old implementations of frechet_l and frechet_r are still available as weibull_max and weibull_min, respectively.

@WarrenWeckesser WarrenWeckesser added maintenance Items related to regular maintenance tasks scipy.stats labels Sep 8, 2017
@WarrenWeckesser WarrenWeckesser added this to the 1.0.0 milestone Sep 8, 2017
@WarrenWeckesser WarrenWeckesser force-pushed the deprecate-frechets branch 2 times, most recently from 2dd9e24 to 1edb964 Compare September 8, 2017 18:14
@WarrenWeckesser
Copy link
Member Author

Does anyone know what's going on with the OSX test runs on Travis-CI?

@rgommers
Copy link
Member

rgommers commented Sep 9, 2017

From https://www.traviscistatus.com/:

Update - We've resumed running private builds at this time. We'll provide further updates
on the overall progress tomorrow morning PDT. Thank you for your patience.
Sep 9, 03:13 UTC
Update - We ran into an issue with booting Xcode 8.x images, so all builds are suspended 
again. We'll update when private builds are running.
Sep 9, 01:28 UTC 

@WarrenWeckesser
Copy link
Member Author

OK, thanks Ralf.

usage is deprecated because of possible confusion with the (quite different)
Frechet distribution. To preserve the existing behavior of the program, use
`scipy.stats.weibull_min`. For the Frechet distribution (i.e. the Type II
extreme value distribution), use `scipy.stats.frechet`."""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that you've split the PR, this needs a tweak. stats.frechet doesn't exist.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same comment applies to the deprecation message for frechet_l

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, missed that one. I just pushed a fix.

@rgommers
Copy link
Member

rgommers commented Sep 9, 2017

LGTM except for the minor change needed to the deprecation message.

* Update the header text to indicate that these are Weibull distributions,
  not Frechet distributions.
* Fixed some mistakes in the moment formulas.
* Reformatted the LaTeX.
* Provided explicit median formula.
@rgommers rgommers merged commit 65e0f50 into scipy:master Sep 9, 2017
@rgommers
Copy link
Member

rgommers commented Sep 9, 2017

LGTM now, in it goes. Thanks @WarrenWeckesser

@rgommers
Copy link
Member

rgommers commented Sep 9, 2017

@WarrenWeckesser are you going to continue immediately on the other parts that were in gh-7190? If not, then it may be a good idea to open a new issue to keep track of that code.

@pv
Copy link
Member

pv commented Aug 8, 2019

Can #3258 be closed now?

@rgommers
Copy link
Member

rgommers commented Aug 8, 2019

Can #3258 be closed now?

good catch, done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Items related to regular maintenance tasks scipy.stats
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants