Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7353323

Browse filesBrowse files
MAINT: Fix linting issues in masked array print formatting patch
1 parent 105f50c commit 7353323
Copy full SHA for 7353323

File tree

Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+2
-2
lines changed

‎numpy/ma/core.py

Copy file name to clipboardExpand all lines: numpy/ma/core.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4188,7 +4188,7 @@ def _list_to_string(self, template, data):
41884188
if (isinstance(data, np.ndarray)
41894189
and data.dtype == object
41904190
and data.shape == ()):
4191-
return str(data.item())
4191+
return str(data.item())
41924192

41934193
# apply truncation before flattening, if legacy and 1D MaskedArray
41944194
legacy = np.get_printoptions().get('legacy') == '1.13'

‎numpy/ma/tests/test_core.py

Copy file name to clipboardExpand all lines: numpy/ma/tests/test_core.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def test_fancy_printoptions(self):
863863
[False, False, True]],
864864
False),
865865
dtype = "int, (2,3)float, float")
866-
control = "(0, [[--, 0., --], [0., 0., --]], 0.)" # if trim='k' starts to work, adjust
866+
control = "(0, [[--, 0., --], [0., 0., --]], 0.)" # if trim='k' starts to work, adjust
867867
assert_equal(str(t_2d0), control)
868868

869869
def test_floatmode_printoption(self):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.