File tree Expand file tree Collapse file tree 3 files changed +8
-14
lines changed Expand file tree Collapse file tree 3 files changed +8
-14
lines changed Original file line number Diff line number Diff line change 2
2
3
3
from numpy .testing import (assert_allclose , assert_almost_equal ,
4
4
assert_array_equal , assert_array_almost_equal_nulp )
5
- import numpy .ma .testutils as matest
6
5
import numpy as np
7
6
import datetime as datetime
8
7
import pytest
Original file line number Diff line number Diff line change 7
7
from matplotlib .testing .decorators import image_comparison
8
8
from matplotlib import pyplot as plt
9
9
import matplotlib .cm as cm
10
- import sys
11
- on_win = (sys .platform == 'win32' )
12
10
13
11
14
12
@image_comparison (baseline_images = ['pngsuite' ], extensions = ['png' ],
Original file line number Diff line number Diff line change 1
1
import numpy as np
2
- import matplotlib .pyplot as plt
3
- import matplotlib .tri as mtri
4
- import pytest
5
- from numpy .testing import assert_array_equal , assert_array_almost_equal ,\
6
- assert_array_less
2
+ from numpy .testing import (
3
+ assert_array_equal , assert_array_almost_equal , assert_array_less )
7
4
import numpy .ma .testutils as matest
8
- from matplotlib .testing .decorators import image_comparison
5
+ import pytest
6
+
9
7
import matplotlib .cm as cm
8
+ import matplotlib .pyplot as plt
9
+ import matplotlib .tri as mtri
10
10
from matplotlib .path import Path
11
-
12
- import sys
13
- on_win = (sys .platform == 'win32' )
11
+ from matplotlib .testing .decorators import image_comparison
14
12
15
13
16
14
def test_delaunay ():
@@ -729,8 +727,7 @@ def z(x, y):
729
727
dic_interp = {'lin' : linear_interp ,
730
728
'min_E' : cubic_min_E ,
731
729
'geom' : cubic_geom }
732
- # Testing that the interpolation is invariant by expansion along
733
- # 1 axis...
730
+ # Test that the interpolation is invariant by expansion along 1 axis...
734
731
for interp_key in ['lin' , 'min_E' , 'geom' ]:
735
732
interpz = dic_interp [interp_key ](xs , ys )
736
733
matest .assert_array_almost_equal (interpz , interp_z0 [interp_key ])
You can’t perform that action at this time.
0 commit comments