Repository navigation
Commit 360de1b
committed
BUG: random: Fix handling of a=0 for numpy.random.weibull.
Before this fix, np.random.weibull(a=0) often returned inf (and
in theory could have returned 1). It should only return 0.
Closes numpygh-12371.1 parent e34f5bb commit 360de1b
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
650 | 650 | | |
651 | 651 | | |
652 | 652 | | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
653 | 656 | | |
654 | 657 | | |
655 | 658 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
945 | | - | |
| 945 | + | |
| 946 | + | |
946 | 947 | | |
947 | 948 | | |
948 | 949 | | |
| |||
0 commit comments