This file contains class definitions of the custom logger objects used in gateau. More...
Classes | |
| class | gateau.custom_logger.CustomFormatter |
| Class for formatting of the logging from the terminal. More... | |
| class | gateau.custom_logger.CustomLogger |
| Class for instantiating a logger object for the terminal. More... | |
Functions | |
| def | gateau.custom_logger.parallel_iterator (x, idx_thread) |
| Wrapper for tqdm for for-loops contained in pooled functions. More... | |
This file contains class definitions of the custom logger objects used in gateau.
| def gateau.custom_logger.parallel_iterator | ( | x, | |
| idx_thread | |||
| ) |
Wrapper for tqdm for for-loops contained in pooled functions.
Makes sure that only thread 0 prints tqdm progressbar to console. All other threads quitly do their job.
| x | Array over which to iterate. |
| idx_thread | Thread index, to determine if progressbar is shown. |