Skip to content

Commit

Permalink
Merge pull request #219 from lauralwatkins/patch-1
Browse files Browse the repository at this point in the history
Update advanced.rst
  • Loading branch information
dfm committed Jun 30, 2017
2 parents 7984142 + eefd3b1 commit d3542d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/user/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ re-ordered list and the corresponding index.
.. code-block:: python
def sort_on_runtime(pos):
p = np.atleast_2d(p)
p = np.atleast_2d(pos)
idx = np.argsort(p[:, 0])[::-1]
return p[idx], idx
Expand Down

0 comments on commit d3542d3

Please sign in to comment.