Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deeplabcut/core/crossvalutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
)
from deeplabcut.utils import auxfun_multianimal, auxiliaryfunctions

_trapz = getattr(np, "trapezoid", np.trapz) # NumPy 2.0+ compat; drop once NumPy 1 unsupported
_trapz = np.trapezoid if hasattr(np, "trapezoid") else np.trapz # NumPy 2.0+ compat; drop once NumPy 1 unsupported


def _set_up_evaluation(data):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from scipy.ndimage import center_of_mass, label
from skimage.feature import peak_local_max

_trapz = getattr(np, "trapezoid", np.trapz) # NumPy 2.0+ compat; drop once NumPy 1 unsupported
_trapz = np.trapezoid if hasattr(np, "trapezoid") else np.trapz # NumPy 2.0+ compat; drop once NumPy 1 unsupported


def extract_cnn_output(outputs_np, cfg):
Expand Down
Loading