Skip to content

Commit

Permalink
add referencing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rcomer committed May 13, 2021
1 parent cf62f66 commit 71abfbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/iris/cube.py
Original file line number Diff line number Diff line change
Expand Up @@ -3188,7 +3188,10 @@ def _intersect_modulus(
indices = inside_indices[split_cell_indices]
cells = bounds[indices]
if maximum % modulus not in cells:
# Recalculate the extended minimum.
# Recalculate the extended minimum only if the output bounds
# do not span the requested (minumum, maximum) range. If
# they do span that range, this adjustment would give unexpected
# results (see #3391).
cells_delta = np.diff(coord.bounds[indices])

# Watch out for ascending/descending bounds.
Expand Down

0 comments on commit 71abfbd

Please sign in to comment.