We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6948d47 commit cba7f56Copy full SHA for cba7f56
cf_xarray/helpers.py
@@ -280,8 +280,9 @@ def _get_ordered_vertices(bounds: np.ndarray) -> np.ndarray:
280
281
def _is_bounds_strictly_monotonic(arr: np.ndarray) -> bool:
282
"""
283
- Check if the array is strictly monotonic (all values ascend or descend
284
- across all intervals if flattened).
+ Check if the input array is strictly monotonic (either strictly increasing
+ or strictly decreasing) when flattened, ignoring any intervals where
285
+ consecutive values are equal.
286
287
Parameters
288
----------
0 commit comments