Skip to content

Commit acfe949

Browse files
committed
improved robustness of the random test
1 parent 727246c commit acfe949

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openpiv/test/test_process.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def test_extended_search_area():
9090

9191
def test_extended_search_area_overlap():
9292
""" test of the extended area PIV with different overlap """
93+
np.random.seed(42) # Set a fixed random seed for reproducibility
9394
frame_a, frame_b = create_pair(image_size=72)
9495
u, v, _ = piv(frame_a, frame_b,
9596
window_size=16,

0 commit comments

Comments
 (0)