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

Method _meta

dask/array/_array_expr/_ufunc.py:302–306  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

300
301 @functools.cached_property
302 def _meta(self):
303 meta = self.operand("meta")
304 a = np.empty_like(meta, shape=(1,) * meta.ndim, dtype=meta.dtype)
305 result = self.operand("func")(a)
306 return result[self.operand("index")]
307
308 @functools.cached_property
309 def chunks(self):

Callers

nothing calls this directly

Calls 1

operandMethod · 0.80

Tested by

no test coverage detected