forked from scipy/scipy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BUG: stats: Fix a few issues with the distributions' fit method.
Fix the following problems: * norm_gen.fit silently ignored unknown keyword arguments. * beta_gen.fit silently ignored unknown keyword arguments if both floc and fscale were given. * gamma_gen.fit silently ignored unknown keyword arguments if floc was given. * A call such as `beta.fit(x, fa=0.5, fix_a=0.5)` generated the error `TypeError: Unknown arguments: {'fix_a': 0.5}`, when it should have generated an error about multiple keyword arguments setting the same fixed parameter. After this change, the error is `ValueError: fit method got multiple keyword arguments to specify the same fixed parameter: fa, fix_a`.
- Loading branch information
1 parent
264e88d
commit c56cde4
Showing
3 changed files
with
93 additions
and
33 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