The output keys of the task graph. Note that there are additional constraints on keys for a Dask collection than those described in the :doc:`task graph specification documentation `. These additional constraints are described below. All keys must eith
(self)
| 128 | |
| 129 | @abc.abstractmethod |
| 130 | def __dask_keys__(self) -> NestedKeys: |
| 131 | """The output keys of the task graph. |
| 132 | |
| 133 | Note that there are additional constraints on keys for a Dask |
| 134 | collection than those described in the :doc:`task graph |
| 135 | specification documentation <spec>`. These additional |
| 136 | constraints are described below. |
| 137 | |
| 138 | All keys must either be non-empty strings or tuples where the first element is a |
| 139 | non-empty string, followed by zero or more arbitrary str, bytes, int, float, or |
| 140 | tuples thereof. The non-empty string is commonly known as the *collection name*. |
| 141 | All collections embedded in the dask package have exactly one name, but this is |
| 142 | not a requirement. |
| 143 | |
| 144 | These are all valid outputs: |
| 145 | |
| 146 | - ``[]`` |
| 147 | - ``["x", "y"]`` |
| 148 | - ``[[("y", "a", 0), ("y", "a", 1)], [("y", "b", 0), ("y", "b", 1)]`` |
| 149 | |
| 150 | Returns |
| 151 | ------- |
| 152 | list |
| 153 | A possibly nested list of keys that represent the outputs |
| 154 | of the graph. After computation, the results will be |
| 155 | returned in the same layout, with the keys replaced with |
| 156 | their corresponding outputs. |
| 157 | |
| 158 | """ |
| 159 | raise NotImplementedError("Inheriting class must implement this method.") |
| 160 | |
| 161 | @abc.abstractmethod |
| 162 | def __dask_postcompute__(self) -> tuple[PostComputeCallable, tuple]: |
nothing calls this directly
no outgoing calls
no test coverage detected