Skip to content

Commit

Permalink
Merge branch 'feature/v0.4.7' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Dec 23, 2024
2 parents 0226d37 + f930a93 commit ecc96b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions colour/utilities/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -2363,7 +2363,7 @@ def orient(
return oriented


def centroid(a: ArrayLike) -> NDArray:
def centroid(a: ArrayLike) -> NDArrayInt:
"""
Return the centroid indexes of given array :math:`a`.
Expand Down Expand Up @@ -2401,7 +2401,7 @@ def centroid(a: ArrayLike) -> NDArray:

a_ci.append(np.sum(axis * a) // a_s)

return np.array(a_ci).astype(DTYPE_INT_DEFAULT)
return as_int_array(a_ci)


def fill_nan(
Expand Down

0 comments on commit ecc96b8

Please sign in to comment.