@@ -25,39 +25,39 @@ def test_imread(image_file=_file_a):
2525 assert frame_a [- 1 , - 1 ] == 15
2626
2727
28- def test_display_vector_field (
29- file_a = _file_a ,
30- file_b = _file_b ,
31- test_file = _test_file
32- ):
33- """ tests display vector field """
34- a = imread (file_a )
35- b = imread (file_b )
36-
37- window_size = 32
38- overlap = 16
39- search_area_size = 40
40-
41- u , v , _ = extended_search_area_piv (a , b , window_size ,
42- search_area_size = search_area_size ,
43- overlap = overlap ,
44- correlation_method = 'circular' ,
45- normalized_correlation = False )
46-
47- x , y = get_coordinates (a .shape , search_area_size = search_area_size , overlap = overlap )
48-
49- x , y , u , v = transform_coordinates (x , y , u , v )
50-
51- mask = np .zeros_like (x , dtype = int )
52- flags = np .zeros_like (x , dtype = int )
53- flags [- 1 ,1 ] = 1 # test of invalid vector plot
54- save ('tmp.txt' , x , y , u , v , flags , mask )
55- fig , ax = plt .subplots (figsize = (6 , 6 ))
56- display_vector_field ('tmp.txt' , on_img = True , image_name = file_a , ax = ax )
57- decorators .remove_ticks_and_titles (fig )
58- fig .savefig ('./tmp.png' )
59- res = compare .compare_images ('./tmp.png' , test_file , 0.05 )
60- assert res is None
28+ # def test_display_vector_field(
29+ # file_a=_file_a,
30+ # file_b=_file_b,
31+ # test_file=_test_file
32+ # ):
33+ # """ tests display vector field """
34+ # a = imread(file_a)
35+ # b = imread(file_b)
36+
37+ # window_size = 32
38+ # overlap = 16
39+ # search_area_size = 40
40+
41+ # u, v, _ = extended_search_area_piv(a, b, window_size,
42+ # search_area_size=search_area_size,
43+ # overlap=overlap,
44+ # correlation_method='circular',
45+ # normalized_correlation=False)
46+
47+ # x, y = get_coordinates(a.shape, search_area_size=search_area_size, overlap=overlap)
48+
49+ # x, y, u, v = transform_coordinates(x, y, u, v)
50+
51+ # mask = np.zeros_like(x, dtype=int)
52+ # flags = np.zeros_like(x, dtype=int)
53+ # flags[-1,1] = 1 # test of invalid vector plot
54+ # save('tmp.txt', x, y, u, v, flags, mask)
55+ # fig, ax = plt.subplots(figsize=(6, 6))
56+ # display_vector_field('tmp.txt', on_img=True, image_name=file_a, ax=ax)
57+ # decorators.remove_ticks_and_titles(fig)
58+ # fig.savefig('./tmp.png')
59+ # res = compare.compare_images('./tmp.png', test_file, 0.05)
60+ # assert res is None
6161
6262def test_file_patterns ():
6363 """
0 commit comments