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 80ced61 commit e43aaa3Copy full SHA for e43aaa3
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