Commit 9d918e0
authored
Add a progress bar for export and import related functionality (#3599)
When provenance graphs become large, exporting and importing the
resulting archives can become time consuming operations. To give the
user more feedback of how the operation is progressing, a progress bar
is added. The implementation is provided by the `tqdm` library which is
therefore added as a new dependency.
Since the export and import code is still not written in a modular way,
to allow the progress bar to get access to the inner parts and provide
information that is granular enough, it is implemented as a global
singleton that the export and import functions fetch. This is to prevent
having to pass the progress bar instance around in method calls. This is
still not an ideal solution and in the future, this should be replaced
with hooks that methods can call in order to update their status.
A similar problem is faced with the logging of textual progress in the
export and import functions that are done haphazardly with print
statements, even though it concerns module functions and not CLI facing
code. This has been changed to go through logging instead. The log level
is temporarily updated based on the `silent` argument that the export
and import functions take.
Finally, the function signature of `export` and `export_tree` have been
changed. The `what` and `outfile` arguments have been deprecated and
replaced by `entities` and `filename`, respectively. A deprecation
message is printed if they are used and they should be removed with the
release of `aiida-core==2.0.0`.1 parent b9d4bbe commit 9d918e0
File tree
47 files changed
+1471
-709
lines changed- aiida
- cmdline
- commands
- params/options
- common
- tools/importexport
- common
- dbexport
- dbimport
- backends
- django
- sqla
- docs
- source/verdi
- requirements
- tests
- cmdline/commands
- orm/implementation
- tools/importexport
- orm
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
47 files changed
+1471
-709
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
| 97 | + | |
97 | 98 | | |
98 | 99 | | |
99 | 100 | | |
| |||
122 | 123 | | |
123 | 124 | | |
124 | 125 | | |
125 | | - | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | | - | |
| 129 | + | |
129 | 130 | | |
130 | 131 | | |
131 | | - | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
37 | 77 | | |
38 | 78 | | |
39 | 79 | | |
| |||
66 | 106 | | |
67 | 107 | | |
68 | 108 | | |
69 | | - | |
70 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
71 | 115 | | |
72 | 116 | | |
73 | 117 | | |
| |||
85 | 129 | | |
86 | 130 | | |
87 | 131 | | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
93 | 139 | | |
94 | 140 | | |
95 | 141 | | |
96 | 142 | | |
97 | 143 | | |
98 | 144 | | |
99 | | - | |
| 145 | + | |
100 | 146 | | |
101 | 147 | | |
102 | 148 | | |
| |||
107 | 153 | | |
108 | 154 | | |
109 | 155 | | |
| 156 | + | |
| 157 | + | |
110 | 158 | | |
111 | 159 | | |
112 | 160 | | |
| |||
120 | 168 | | |
121 | 169 | | |
122 | 170 | | |
123 | | - | |
| 171 | + | |
124 | 172 | | |
125 | | - | |
126 | | - | |
| 173 | + | |
| 174 | + | |
127 | 175 | | |
128 | | - | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
129 | 180 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | 181 | | |
134 | | - | |
| 182 | + | |
| 183 | + | |
135 | 184 | | |
136 | 185 | | |
137 | 186 | | |
| |||
197 | 246 | | |
198 | 247 | | |
199 | 248 | | |
200 | | - | |
201 | 249 | | |
202 | 250 | | |
203 | 251 | | |
| |||
217 | 265 | | |
218 | 266 | | |
219 | 267 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
225 | 275 | | |
226 | 276 | | |
227 | 277 | | |
| |||
239 | 289 | | |
240 | 290 | | |
241 | 291 | | |
242 | | - | |
| 292 | + | |
| 293 | + | |
243 | 294 | | |
244 | 295 | | |
245 | 296 | | |
| |||
250 | 301 | | |
251 | 302 | | |
252 | 303 | | |
| 304 | + | |
253 | 305 | | |
254 | 306 | | |
255 | 307 | | |
| |||
265 | 317 | | |
266 | 318 | | |
267 | 319 | | |
| 320 | + | |
268 | 321 | | |
269 | 322 | | |
270 | 323 | | |
271 | 324 | | |
272 | 325 | | |
273 | 326 | | |
274 | | - | |
| 327 | + | |
275 | 328 | | |
276 | 329 | | |
277 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
| 94 | + | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
119 | | - | |
| 117 | + | |
120 | 118 | | |
121 | 119 | | |
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
125 | | - | |
126 | | - | |
| 123 | + | |
| 124 | + | |
127 | 125 | | |
128 | | - | |
| 126 | + | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
| |||
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
143 | | - | |
144 | | - | |
| 141 | + | |
145 | 142 | | |
146 | 143 | | |
147 | 144 | | |
| |||
155 | 152 | | |
156 | 153 | | |
157 | 154 | | |
158 | | - | |
159 | | - | |
| 155 | + | |
160 | 156 | | |
161 | 157 | | |
162 | 158 | | |
| |||
236 | 232 | | |
237 | 233 | | |
238 | 234 | | |
239 | | - | |
240 | | - | |
| 235 | + | |
241 | 236 | | |
242 | 237 | | |
243 | 238 | | |
| |||
251 | 246 | | |
252 | 247 | | |
253 | 248 | | |
254 | | - | |
255 | | - | |
| 249 | + | |
256 | 250 | | |
257 | 251 | | |
258 | 252 | | |
| |||
352 | 346 | | |
353 | 347 | | |
354 | 348 | | |
355 | | - | |
356 | | - | |
357 | | - | |
| 349 | + | |
358 | 350 | | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
363 | 355 | | |
364 | | - | |
365 | | - | |
366 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
367 | 359 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
373 | 363 | | |
374 | 364 | | |
375 | 365 | | |
| |||
390 | 380 | | |
391 | 381 | | |
392 | 382 | | |
393 | | - | |
394 | | - | |
| 383 | + | |
395 | 384 | | |
396 | 385 | | |
397 | | - | |
398 | | - | |
399 | | - | |
| 386 | + | |
| 387 | + | |
400 | 388 | | |
401 | 389 | | |
402 | 390 | | |
| |||
0 commit comments