Skip to content

Commit

Permalink
remove check because this should never happen
Browse files Browse the repository at this point in the history
  • Loading branch information
eberrigan committed Apr 11, 2024
1 parent 9a260d5 commit 9b8b658
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sleap_roots/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ def get_base_ys(base_pts: np.ndarray) -> np.ndarray:
Return:
An array of the y-coordinates of bases (instances,).
"""
# If the input is a single number (float or integer), return np.nan
if isinstance(base_pts, (np.floating, float, np.integer, int)):
return np.nan

# Check for the 2D shape of the input array
if base_pts.ndim == 1:
# If shape is `(2,)`, then reshape it to `(1, 2)` for consistency
Expand Down

0 comments on commit 9b8b658

Please sign in to comment.