Gateau User Manual
Atmospheric simulation of astronomical signals
custom_logger.py File Reference

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...
 

Detailed Description

This file contains class definitions of the custom logger objects used in gateau.

Function Documentation

◆ parallel_iterator()

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.

Parameters
xArray over which to iterate.
idx_threadThread index, to determine if progressbar is shown.
Returns
Wrapper for tqdm if idx_thread == 0, else return x itself.