Helper for :func:`dask.array.map_blocks` to pass `block_info` or `block_id`. For each element of `keys`, a corresponding element of args is changed to a keyword argument with that key, before all arguments re passed on to `func`.
(func, keys, *args, **kwargs)
| 538 | |
| 539 | |
| 540 | def _pass_extra_kwargs(func, keys, *args, **kwargs): |
| 541 | """Helper for :func:`dask.array.map_blocks` to pass `block_info` or `block_id`. |
| 542 | |
| 543 | For each element of `keys`, a corresponding element of args is changed |
| 544 | to a keyword argument with that key, before all arguments re passed on |
| 545 | to `func`. |
| 546 | """ |
| 547 | kwargs.update(zip(keys, args)) |
| 548 | return func(*args[len(keys) :], **kwargs) |
| 549 | |
| 550 | |
| 551 | def map_blocks( |
nothing calls this directly
no test coverage detected
searching dependent graphs…