diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2014-07-30 15:14:11 -0600 |
---|---|---|
committer | Julian Taylor <jtaylor.debian@googlemail.com> | 2014-07-31 21:08:04 +0200 |
commit | 0b5a6645ee110a8d4c6b5defd8c01791ee48bda1 (patch) | |
tree | dad4ce39a2a89e0655c9cd4b67e66fff90892f1c /numpy/lib/tests/test_index_tricks.py | |
parent | b2955ede452b8ca2aae5d0b035cd19c8a3b12480 (diff) | |
download | numpy-0b5a6645ee110a8d4c6b5defd8c01791ee48bda1.tar.gz |
STY: PEP8 compliance for numpy/lib/tests.
The possibly controversial part of this is making the nested array
value lists PEP8 compliant, as there is something to be said aligning
the values for clarity. In the end, it seemed like the easiest thing
to do was to make them PEP8 compliant. The eye can get used to that.
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
-rw-r--r-- | numpy/lib/tests/test_index_tricks.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py index 375fd9517..97047c53a 100644 --- a/numpy/lib/tests/test_index_tricks.py +++ b/numpy/lib/tests/test_index_tricks.py @@ -229,16 +229,16 @@ def test_fill_diagonal(): def test_diag_indices(): di = diag_indices(4) - a = np.array([[1, 2, 3, 4], - [5, 6, 7, 8], - [9, 10, 11, 12], + a = np.array([[1, 2, 3, 4], + [5, 6, 7, 8], + [9, 10, 11, 12], [13, 14, 15, 16]]) a[di] = 100 yield (assert_array_equal, a, - np.array([[100, 2, 3, 4], - [5, 100, 7, 8], - [9, 10, 100, 12], - [13, 14, 15, 100]])) + np.array([[100, 2, 3, 4], + [5, 100, 7, 8], + [9, 10, 100, 12], + [13, 14, 15, 100]])) # Now, we create indices to manipulate a 3-d array: d3 = diag_indices(2, 3) |