Skip to content

Commit

Permalink
updated annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlib committed Apr 18, 2024
1 parent c391622 commit d1abec8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion openpiv/validation.py
Expand Up @@ -23,6 +23,7 @@
import numpy as np
from scipy.ndimage import generic_filter
import matplotlib.pyplot as plt
from openpiv.windef import PIVSettings



Expand Down Expand Up @@ -165,7 +166,13 @@ def sig2noise_val(
return ind


def local_median_val(u, v, u_threshold, v_threshold, size=1):
def local_median_val(
u: np.ndarray,
v: np.ndarray,
u_threshold: float,
v_threshold: float,
size: int=1
)->np.ndarray:
"""Eliminate spurious vectors with a local median threshold.
This validation method tests for the spatial consistency of the data.
Expand Down

0 comments on commit d1abec8

Please sign in to comment.