Commit ddb7d6e8 authored by Guillaume HEUSCH's avatar Guillaume HEUSCH

[test] yet another correction (previous one was sloppy) to test if array is numpy.array

parent 77fe5d32
Pipeline #17244 failed with stage
in 17 minutes and 35 seconds
...@@ -152,7 +152,6 @@ def test_convert_list_of_frame_cont_to_array(): ...@@ -152,7 +152,6 @@ def test_convert_list_of_frame_cont_to_array():
real_array = np.transpose(np.vstack([[random.gauss(mu, sigma) for _ in range(N)], [random.gauss(mu, sigma) for _ in range(N)]])) real_array = np.transpose(np.vstack([[random.gauss(mu, sigma) for _ in range(N)], [random.gauss(mu, sigma) for _ in range(N)]]))
features_array = convert_list_of_frame_cont_to_array(real_array) features_array = convert_list_of_frame_cont_to_array(real_array)
assert isinstance(features_array[0], np.array)
assert type(features_array[0]) is np.array assert type(features_array[0]) is np.array
features_fm = convert_array_to_list_of_frame_cont(real_array) features_fm = convert_array_to_list_of_frame_cont(real_array)
assert isinstance(features_fm[0], bob.bio.video.FrameContainer) assert isinstance(features_fm[0], bob.bio.video.FrameContainer)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment