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

Function _elemwise_normalize_out

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

Source from the content-addressed store, hash-verified

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

Callers 2

elemwiseFunction · 0.85
handle_outFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected