Skip to content

Commit

Permalink
shorten comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tasansal authored Aug 7, 2023
1 parent e21d942 commit 0ea0644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mdio/api/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def coord_to_index(

sorter = mdio_dim.coords.argsort()
dim_idx = np.searchsorted(mdio_dim, dim_query_coords, sorter=sorter)
dim_idx = dim_idx.astype("uint32") # cast to minimize memory. max: 2,147,483,647
dim_idx = dim_idx.astype("uint32") # cast max: 2,147,483,647
dim_indices += (dim_idx,)

return dim_indices if len(dim_indices) > 1 else dim_indices[0]
Expand Down

0 comments on commit 0ea0644

Please sign in to comment.