Skip to content

Commit

Permalink
STY: meshgrid: some minor changes to address review comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Feb 5, 2012
1 parent 3fb541e commit d48b756
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion numpy/lib/function_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3223,7 +3223,7 @@ def meshgrid(*xi, **kwargs):
If False, a view into the original arrays are returned in
order to conserve memory. Default is True. Please note that
``sparse=False, copy=False`` will likely return non-contiguous arrays.
Furthermore, more than one element of a broadcasted array may refer to
Furthermore, more than one element of a broadcast array may refer to
a single memory location. If you need to write to the arrays, make
copies first.
Expand Down
5 changes: 1 addition & 4 deletions numpy/lib/tests/test_function_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,10 +1052,7 @@ def test_indexing(self):
def test_sparse(self):
[X, Y] = meshgrid([1, 2, 3], [4, 5, 6, 7], sparse=True)
assert_(all(X == array([[1, 2, 3]])))
assert_(all(Y == array([[4],
[5],
[6],
[7]])))
assert_(all(Y == array([[4], [5], [6], [7]])))


class TestPiecewise(TestCase):
Expand Down

0 comments on commit d48b756

Please sign in to comment.