MCPcopy
hub / github.com/dask/dask / get

Method get

dask/blockwise.py:56–61  ·  view source on GitHub ↗

BlockwiseDep ``__getitem__`` Wrapper

(self, idx: tuple[int, ...], default)

Source from the content-addressed store, hash-verified

54 )
55
56 def get(self, idx: tuple[int, ...], default) -> Any:
57 """BlockwiseDep ``__getitem__`` Wrapper"""
58 try:
59 return self.__getitem__(idx)
60 except KeyError:
61 return default
62
63 @property
64 def produces_keys(self) -> bool:

Callers 15

updateFunction · 0.45
interpret_valueFunction · 0.45
_matchFunction · 0.45
labelFunction · 0.45
to_graphvizFunction · 0.45
_to_cytoscape_jsonFunction · 0.45
getFunction · 0.45
fractional_sliceFunction · 0.45
__init__Method · 0.45
_repr_html_Method · 0.45

Calls 1

__getitem__Method · 0.95

Tested by 11

test_getMethod · 0.36
test_badkeyMethod · 0.36
test_nested_badkeyMethod · 0.36
test_get_with_listMethod · 0.36
test_nested_tasksMethod · 0.36
test_get_stack_limitMethod · 0.36