MCPcopy
hub / github.com/dask/dask / extract

Function extract

dask/array/routines.py:2048–2051  ·  view source on GitHub ↗
(condition, arr)

Source from the content-addressed store, hash-verified

2046
2047@derived_from(np)
2048def extract(condition, arr):
2049 condition = asarray(condition).astype(bool)
2050 arr = asarray(arr)
2051 return compress(condition.ravel(), arr.ravel())
2052
2053
2054@derived_from(np)

Callers

nothing calls this directly

Calls 4

asarrayFunction · 0.90
compressFunction · 0.85
astypeMethod · 0.45
ravelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…