MCPcopy Create free account
hub / github.com/pydata/xarray / _fill_with_last_one

Function _fill_with_last_one

xarray/compat/dask_array_ops.py:77–83  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

75
76
77def _fill_with_last_one(a, b):
78 import numpy as np
79
80 # cumreduction apply the push func over all the blocks first so,
81 # the only missing part is filling the missing values using the
82 # last data of the previous chunk
83 return np.where(np.isnan(b), a, b)
84
85
86def _dtype_push(a, axis, dtype=None):

Callers

nothing calls this directly

Calls 1

whereMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…