Debian Codegraph @

dask/dask-schema.yaml

raw
1 properties:
2
3 temporary-directory:
4 type:
5 - string
6 - "null"
7 description: |
8 Temporary directory for local disk storage /tmp, /scratch,
9 or /local. This directory is used during dask spill-to-disk operations.
10
11 When the value is "null" (default), dask will create a directory from
12 where dask was launched: `cwd/dask-worker-space`
13
14 visualization:
15 type: object
16 properties:
17 engine:
18 type:
19 - string
20 - 'null'
21 description: |
22 Visualization engine to use when calling ``.visualize()`` on a Dask collection.
23 Currently supports ``'graphviz'``, ``'ipycytoscape'``, and ``'cytoscape'``
24 (alias for ``'ipycytoscape'``)
25
26 tokenize:
27 type: object
28 properties:
29 ensure-deterministic:
30 type:
31 - boolean
32 description: |
33 If ``true``, tokenize will error instead of falling back to uuids
34 when a deterministic token cannot be generated. Defaults to
35 ``false``.
36
37 dataframe:
38 type: object
39 properties:
40
41 backend:
42 type:
43 - string
44 - "null"
45 description: |
46 Backend to use for supported dataframe-creation functions.
47 Default is "pandas".
48
49 shuffle:
50 type: object
51 properties:
52
53 method:
54 type:
55 - string
56 - "null"
57 description: |
58 The default shuffle method to choose. Possible values are disk,
59 tasks, p2p. If null, pick best method depending on application.
60
61 compression:
62 type:
63 - string
64 - "null"
65 description: |
66 Compression algorithm used for on disk-shuffling. Partd, the library used
67 for compression supports ZLib, BZ2, and SNAPPY
68
69
70 parquet:
71 type: object
72 properties:
73
74 metadata-task-size-local:
75 type: integer
76 description: |
77 The number of files to handle within each metadata-processing
78 task when reading a parquet dataset from a LOCAL file system.
79 Specifying 0 will result in serial execution on the client.
80
81 metadata-task-size-remote:
82 type: integer
83 description: |
84 The number of files to handle within each metadata-processing
85 task when reading a parquet dataset from a REMOTE file system.
86 Specifying 0 will result in serial execution on the client.
87 minimum-partition-size:
88 type: integer
89 description: |
90 The minimum in-memory size of a single partition after reading
91 from parquet. Smaller parquet files will be combined into
92 a single partitions to reach this threshold.
93
94 convert-string:
95 type: [boolean, 'null']
96 description: |
97 Whether to convert string-like data to pyarrow strings.
98 query-planning:
99 type: [boolean, "null"]
100 description: |
101 Whether to use query planning.
102
103 array:
104 type: object
105 properties:
106
107 backend:
108 type:
109 - string
110 - "null"
111 description: |
112 Backend to use for supported array-creation functions.
113 Default is "numpy".
114
115 chunk-size:
116 type:
117 - integer
118 - string
119 description: |
120 The default chunk size to target. Default is "128MiB".
121
122 chunk-size-tolerance:
123 type: number
124 description: |
125 Upper tolerance for different algorithms when creating output chunks.
126 Default is 1.25. This means that the algorithms can exceed
127 the average input chunk size along this dimension by 25%.
128
129 rechunk:
130 type: object
131 properties:
132
133 method:
134 type:
135 - string
136 - "null"
137 description: |
138 The method to use for rechunking. Possible values are tasks or p2p.
139 If null, pick best method depending on application.
140
141 threshold:
142 type: integer
143 description: |
144 The graph growth factor above which task-based shuffling introduces
145 an intermediate step.
146
147 svg:
148 type: object
149 properties:
150
151 size:
152 type: integer
153 description: |
154 The size of pixels used when displaying a dask array as an SVG image.
155 This is used, for example, for nice rendering in a Jupyter notebook
156
157 slicing:
158 type: object
159 properties:
160 split-large-chunks:
161 type: [boolean, 'null']
162 description: |
163 How to handle large chunks created when slicing Arrays. By default a
164 warning is produced. Set to ``False`` to silence the warning
165 and allow large output chunks. Set to ``True`` to silence the
166 warning and avoid large output chunks.
167 query-planning:
168 type: [boolean, "null"]
169 description: |
170 Whether to use query planning for arrays.
171
172 optimization:
173 type: object
174 properties:
175
176 annotations:
177 type: object
178 properties:
179 fuse:
180 type: boolean
181 description: |
182 If adjacent blockwise layers have different annotations (e.g., one has
183 retries=3 and another has retries=4), Dask can make an attempt to merge
184 those annotations according to some simple rules. ``retries`` is set to
185 the max of the layers, ``priority`` is set to the max of the layers,
186 ``resources`` are set to the max of all the resources, ``workers`` is
187 set to the intersection of the requested workers. If this setting is
188 disabled, then adjacent blockwise layers with different annotations
189 will *not* be fused.
190
191 fuse:
192 type: object
193 description: Options for Dask's task fusion optimizations
194 properties:
195
196 active:
197 type: [boolean, 'null']
198 description: |
199 Turn task fusion on/off. This option refers to the fusion of a
200 fully-materialized task graph (not a high-Level graph). By default
201 (None), the active task-fusion option will be treated as ``False``
202 for Dask-Dataframe collections, and as ``True`` for all other graphs
203 (including Dask-Array collections).
204
205 ave-width:
206 type: number
207 minimum: 0
208 description:
209 Upper limit for width, where width = num_nodes / height, a good measure
210 of parallelizability
211
212 max-width:
213 type: [number, 'null']
214 minimum: 0
215 description:
216 Don't fuse if total width is greater than this. Set to null to dynamically
217 adjust to 1.5 + ave_width * log(ave_width + 1)
218
219 max-height:
220 type: number
221 minimum: 0
222 description: Don't fuse more than this many levels
223
224 max-depth-new-edges:
225 type: [number, 'null']
226 minimum: 0
227 description:
228 Don't fuse if new dependencies are added after this many levels.
229 Set to null to dynamically adjust to ave_width * 1.5.
230
231 subgraphs:
232 type: [boolean, 'null']
233 description: |
234 Set to True to fuse multiple tasks into SubgraphCallable objects. Set to
235 None to let the default optimizer of individual dask collections decide.
236 If no collection-specific default exists, None defaults to False.
237
238 rename-keys:
239 type: boolean
240 description:
241 Set to true to rename the fused keys with `default_fused_keys_renamer`.
242 Renaming fused keys can keep the graph more understandable and
243 comprehensible, but it comes at the cost of additional processing. If
244 False, then the top-most key will be used. For advanced usage, a function
245 to create the new name is also accepted.
246
247 delayed:
248 type: boolean
249 description: |
250 Whether to fuse adjacent delayed calls together. This can be useful to ensure
251 that an independent chain of delayed calls is executed in a single task to
252 reduce the memory footprint on a single worker.
253
254 admin:
255 type: object
256 properties:
257
258 traceback:
259 type: object
260 properties:
261
262 shorten:
263 description:
264 Clean up Dask tracebacks for readability.
265 Remove all modules that match one of the listed regular expressions.
266 Always preserve the first and last frame.
267 type: array
268 items:
269 type: string