ewoksxrpd.tasks.log.zip_with_progress#
- ewoksxrpd.tasks.log.zip_with_progress(*iterators, message='Progress %d/%s', nmax=None, period=5, logger=None, iter_time_name='iteration')[source]#
Like python’s zip but will progress logging when iterating over the result. In addition it yields a context manager which allows for timing different sections in the context as well as the yielding time itself:
- Parameters:
iterators (
Iterator
[Iterator
[Any
]])message (
str
)nmax (
Optional
[int
])period (
float
)iter_time_name (
str
)
- Return type:
Generator
[Tuple
[Any
],None
,None
]