Skip to content

Commit

Permalink
pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
rcomer committed Sep 29, 2021
1 parent 639baf8 commit b74aeb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iris/coords.py
Original file line number Diff line number Diff line change
Expand Up @@ -2206,7 +2206,7 @@ def nearest_neighbour_index(self, point):
# make bounds ranges complete+separate, so point is in at least one
increasing = self.bounds[0, 1] > self.bounds[0, 0]
# identify data type that bounds and point can safely cast to
dtype = np.result_type(bounds, np.min_scalar_type(point))
dtype = np.result_type(bounds, point)
bounds = bounds.astype(dtype)
# sort the bounds cells by their centre values
sort_inds = np.argsort(np.mean(bounds, axis=1))
Expand Down

0 comments on commit b74aeb9

Please sign in to comment.