Commit e3796c2
committed
handle NaN case nicely in _is_sorted
Previously, the `>=` comparison would cause a
"RuntimeWarning: invalid value encountered in greater_equal".
Here, `np.amin` propagates NaN values appropriately
and doesn't cause the warning to throw.1 parent e6f8993 commit e3796c2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
| 507 | + | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| |||
0 commit comments