function handle_progress_bar

deeptime.util.platform.handle_progress_bar(progress)

Takes a (potential) progress bar, if None, just returns an iterable that does nothing but return everything.

Parameters:

progress (progress bar or None, optional) – The progressbar

Returns:

progress_bar – A progress bar (or no/identity progress bar if input was None).

Return type:

iterable