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

Function _elemwise_normalize_out

dask/array/core.py:5227–5240  ·  view source on GitHub ↗
(out)

Source from the content-addressed store, hash-verified

5225
5226
5227def _elemwise_normalize_out(out):
5228 if isinstance(out, tuple):
5229 if len(out) == 1:
5230 out = out[0]
5231 elif len(out) > 1:
5232 raise NotImplementedError("The out parameter is not fully supported")
5233 else:
5234 out = None
5235 if not (out is None or isinstance(out, Array)):
5236 raise NotImplementedError(
5237 f"The out parameter is not fully supported."
5238 f" Received type {type(out).__name__}, expected Dask Array"
5239 )
5240 return out
5241
5242
5243def handle_out(out, result):

Callers 2

elemwiseFunction · 0.85
handle_outFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected