MCPcopy Create free account
hub / github.com/dask/dask / set_fill_value

Function set_fill_value

dask/array/ma.py:165–172  ·  view source on GitHub ↗
(a, fill_value)

Source from the content-addressed store, hash-verified

163
164@derived_from(np.ma)
165def set_fill_value(a, fill_value):
166 a = asanyarray(a)
167 if getattr(fill_value, "shape", ()):
168 raise ValueError("da.ma.set_fill_value doesn't support array `value`s")
169 fill_value = np.ma.core._check_fill_value(fill_value, a.dtype)
170 res = a.map_blocks(_set_fill_value, fill_value)
171 a.dask = res.dask
172 a._name = res.name
173
174
175@derived_from(np.ma)

Callers

nothing calls this directly

Calls 2

asanyarrayFunction · 0.90
map_blocksMethod · 0.45

Tested by

no test coverage detected