MCPcopy
hub / github.com/pydata/xarray / _division

Function _division

xarray/coding/times.py:1010–1018  ·  view source on GitHub ↗
(deltas, delta, floor)

Source from the content-addressed store, hash-verified

1008
1009
1010def _division(deltas, delta, floor):
1011 if floor:
1012 # calculate int64 floor division
1013 # to preserve integer dtype if possible (GH 4045, GH7817).
1014 num = deltas // delta.astype(np.int64)
1015 num = num.astype(np.int64, copy=False)
1016 else:
1017 num = deltas / delta
1018 return num
1019
1020
1021def encode_cf_datetime(

Callers 2

Calls 1

astypeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…