MCPcopy Index your code
hub / github.com/pydata/xarray / _unique_deltas

Function _unique_deltas

xarray/coding/frequencies.py:228–230  ·  view source on GitHub ↗

Sorted unique deltas of numpy array

(arr)

Source from the content-addressed store, hash-verified

226
227
228def _unique_deltas(arr):
229 """Sorted unique deltas of numpy array"""
230 return np.sort(np.unique(np.diff(arr)))
231
232
233def _is_multiple(us, mult: int):

Callers 3

deltasMethod · 0.85
year_deltasMethod · 0.85
month_deltasMethod · 0.85

Calls 1

diffMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…