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

Function full_like

xarray/tests/arrays.py:140–148  ·  view source on GitHub ↗

Broadcasts an array to a specified shape, by either manipulating chunk keys or copying chunk manifest entries.

(
    x: "ConcatenatableArray", /, fill_value, **kwargs
)

Source from the content-addressed store, hash-verified

138
139@implements(np.full_like)
140def full_like(
141 x: "ConcatenatableArray", /, fill_value, **kwargs
142) -> "ConcatenatableArray":
143 """
144 Broadcasts an array to a specified shape, by either manipulating chunk keys or copying chunk manifest entries.
145 """
146 if not isinstance(x, ConcatenatableArray):
147 raise TypeError
148 return ConcatenatableArray(np.full(x.shape, fill_value=fill_value, **kwargs))
149
150
151@implements(np.all)

Callers

nothing calls this directly

Calls 1

ConcatenatableArrayClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…