Skip to content

Commit

Permalink
refactor: Update index_to_row function to handle xr.DataArray input
Browse files Browse the repository at this point in the history
  • Loading branch information
selipot committed Jul 30, 2024
1 parent c929e62 commit 4aa0c57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clouddrift/ragged.py
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ def unpack(


def obs_index_to_row(
index: int | list[int] | np.ndarray,
index: int | list[int] | np.ndarray | xr.DataArray,
rowsize: list[int] | np.ndarray | xr.DataArray,
) -> list:
"""Obtain a list of row indices from a list of observation indices of a ragged array.
Expand Down

0 comments on commit 4aa0c57

Please sign in to comment.