exosim.utils.runConfig#

Attributes#

Classes#

SingletonMeta

The Singleton class can be implemented in different ways in Python. Some

RunConfigInit

Class used to propagate values through the code.

Module Contents#

total_cpus[source]#
class SingletonMeta[source]#

Bases: type

The Singleton class can be implemented in different ways in Python. Some possible methods include: base class, decorator, metaclass. We will use the metaclass because it is best suited for this purpose.

class RunConfigInit[source]#

Bases: exosim.log.Logger

Class used to propagate values through the code.

chunk_size = 2[source]#
config_file_list = [][source]#
property random_seed[source]#
random_seed()[source]#
property n_job[source]#
property random_generator[source]#
Returns a random generator with the current random seed updated by one if the random seed is set
stats(log=True)[source]#

It returns a dictionary with the updated run configurations.

Parameters:

log (bool (optional)) – if True, it prints the run configuration stats. Default is True.

RunConfig[source]#