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 6, 2021
1 parent 5646b16 commit 5231c68
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/iris/cube.py
Expand Up @@ -3133,7 +3133,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 5231c68

Please sign in to comment.