We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd769d6 commit 7cf7f2bCopy full SHA for 7cf7f2b
1 file changed
openpiv/windef.py
@@ -972,13 +972,16 @@ def multipass_img_deform(
972
def simple_multipass(
973
frame_a: np.ndarray,
974
frame_b: np.ndarray,
975
- settings: "PIVSettings",
+ settings: Optional["PIVSettings"]=None,
976
windows: Optional[Tuple[int, ...]]=None,
977
)->Tuple:
978
""" Simple windows deformation multipass run with
979
default settings
980
"""
981
982
+ if settings is None:
983
+ settings = PIVSettings()
984
+
985
if windows is not None:
986
settings.num_iterations = len(windows)
987
settings.windowsizes = windows
0 commit comments