Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitf5da334

Browse files
committed
MAINT: Fix linting issues in masked array print formatting patch
1 parent105f50c commitf5da334

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎numpy/ma/core.py

Lines 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
anddata.dtype==object
41904190
anddata.shape== ()):
4191-
returnstr(data.item())
4191+
returnstr(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

Lines 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
deftest_floatmode_printoption(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp