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

Function _elemwise_normalize_out

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

Source from the content-addressed store, hash-verified

5024
5025
5026def _elemwise_normalize_out(out):
5027 if isinstance(out, tuple):
5028 if len(out) == 1:
5029 out = out[0]
5030 elif len(out) > 1:
5031 raise NotImplementedError("The out parameter is not fully supported")
5032 else:
5033 out = None
5034 if not (out is None or isinstance(out, Array)):
5035 raise NotImplementedError(
5036 f"The out parameter is not fully supported."
5037 f" Received type {type(out).__name__}, expected Dask Array"
5038 )
5039 return out
5040
5041
5042def handle_out(out, result):

Callers 2

elemwiseFunction · 0.85
handle_outFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected