Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix #5693: Implemented is_sorted in C #5719
Conversation
mdboom
added the
needs_review
label
Dec 22, 2015
mdboom
added this to the
Critical bugfix release (1.5.1)
milestone
Dec 22, 2015
|
Nice! |
|
tad worried what this will do with large int arrays or pd.Series but so long an np will do the corrosion it should be no worse than it is now (I think). |
Yeah. I think a conversion was already happening in the |
|
I've updated this to work on ints directly as well. |
tacaswell
added a commit
that referenced
this pull request
Dec 23, 2015
|
|
tacaswell |
aab6cfd
|
tacaswell
merged commit aab6cfd
into matplotlib:master
Dec 23, 2015
tacaswell
removed the
needs_review
label
Dec 23, 2015
|
backport on this had conflicts, making sure it works locally before pushing |
tacaswell
added a commit
that referenced
this pull request
Dec 23, 2015
|
|
tacaswell |
db80928
|
|
backported as db80928 |
tacaswell
referenced
this pull request
Dec 23, 2015
Closed
Warning in test_lines.test_nan_is_sorted #5365
|
I know this is merged already, but I'm curious as to the expected behaviour with respect to infinities? As you may guess from the name, >>> import numpy as np
>>> x = np.arange(10.)
>>> x[4] = np.inf
>>> x
array([ 0., 1., 2., 3., inf, 5., 6., 7., 8., 9.])
>>> np.nanmin(x[1:] - x[:-1]) >= 0
False
>>> from matplotlib import _path
>>> _path.is_sorted(x)
TrueIs it just not possible for there to be infinities at this location? |
|
That is a good point that I think we missed on review. On Wed, Dec 23, 2015 at 6:44 PM Elliott Sales de Andrade <
|
mdboom commentedDec 22, 2015
No description provided.