CallbackProgressBar

class odl.solvers.util.callback.CallbackProgressBar(niter, step=1, **kwargs)[source]

Bases: Callback

Callback for displaying a progress bar.

This callback requires the tqdm package.

Methods

__call__(_)

Update the progressbar.

reset()

Set iter to 0.

__init__(niter, step=1, **kwargs)[source]

Initialize a new instance.

Parameters:
niterpositive int, optional

Total number of iterations.

steppositive int, optional

Number of iterations between output.

Other Parameters:
kwargs

Further parameters passed to tqdm.tqdm.