embcol.logging.progress_text

embcol.logging.progress_text(stream=None)

Make a context manager for reporting optimization progress by text.

The 'embcol' logger is reconfigured on entering the context. The original settings are restored on exiting the context.

Parameters:

stream (file-like, optional) – Stream to which progress is written. If nothing is given, progress is written to the standard error.