porespy.tools.Settings#
- class porespy.tools.Settings(*args, **kwargs)#
A dataclass for use at the module level to store settings. This class is defined as a Singleton so now matter how or where it gets instantiated the same object is returned, containing all existing settings.
- Parameters:
notebook (boolean) – Is automatically determined upon initialization of PoreSpy, and is
Trueif running within a Jupyter notebook andFalseotherwise. This is used by theporespy.tools.get_tqdmfunction to determine whether a standard or a notebook version of the progress bar should be used.tqdm (dict) – This dictionary is passed directly to the the
tqdmfunction throughout PoreSpy (for i in tqdm(range(N), **settings.tqdm)). To see a list of available options visit the tqdm website. Probably the most important is'disable'which when set toTruewill silence the progress bars. It’s also possible to adjust the formatting such as'colour'and'ncols', which controls width.loglevel (str, or int) – Determines what messages to get printed in console. Options are:
'TRACE'(5),'DEBUG'(10),'INFO'(20),'SUCCESS'(25),'WARNING'(30),'ERROR'(40),'CRITICAL'(50)
- divs = 2#
- property loglevel#
- ncores#
- notebook#
- overlap = None#
- tqdm#