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

Commit967d0e4

Browse files
committed
TST: Avoid floating point errors in asinh ticker
This avoids the floating point issues with tests in the asinh ticklocator by moving away from the 100 log10 cliff. This was failing withthe new AVX instruction updates in numpy.
1 parent9cf03c0 commit967d0e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎lib/matplotlib/tests/test_ticker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,8 @@ def test_near_zero(self):
510510
deftest_fallback(self):
511511
lctr=mticker.AsinhLocator(1.0,numticks=11)
512512

513-
assert_almost_equal(lctr.tick_values(100,101),
514-
np.arange(100,101.01,0.1))
513+
assert_almost_equal(lctr.tick_values(101,102),
514+
np.arange(101,102.01,0.1))
515515

516516
deftest_symmetrizing(self):
517517
classDummyAxis:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp