Skip to content

Commit 30ec782

Browse files
committed
A change in overlap setting - allows small spacing for windows when search_area_size is larger than window_size
1 parent ff58952 commit 30ec782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

openpiv/pyprocess.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1022,8 +1022,8 @@ def extended_search_area_piv(
10221022
search_area_size = (search_area_size, search_area_size)
10231023

10241024
# verify that things are logically possible:
1025-
if overlap[0] >= window_size[0] or overlap[1] >= window_size[1]:
1026-
raise ValueError("Overlap has to be smaller than the window_size")
1025+
if overlap[0] >= search_area_size[0] or overlap[1] >= search_area_size[1]:
1026+
raise ValueError("Overlap has to be smaller than the search_area_size")
10271027

10281028
if search_area_size[0] < window_size[0] or search_area_size[1] < window_size[1]:
10291029
raise ValueError("Search size cannot be smaller than the window_size")

0 commit comments

Comments
 (0)