in3Utils.cfgUtils
Utilities for handling configuration files
Functions
append simulation configuration to the simulation dataframe only account for sections GENERAL and INPUT |
|
append Tcpu dictionary to the dataframe |
|
UID hash of a config. |
|
compare locCfg to defCfg and return a cfg object and modification dict Values are merged from locCfg to defCfg: - parameters already in defCfg get the value from locCfg - additional values in locCfg get added in the resulting Cfg |
|
create dictionary from configparser object |
|
convert a string DF to a numerical one |
|
create configParser object from dict |
|
convert a list into a string where individual list items are separated by | |
|
Read configurations from all simulations configuration ini files from directory |
|
Returns the default configuration for a given module returns a configParser object |
|
Returns the general configuration for avaframe returns a configParser object |
|
get the path and name of a module from imported module |
|
Returns the configuration for a given module returns a configParser object |
|
Determine how many CPU cores to take for parallel tasks |
|
Read allConfigurations.csv file as dataFrame from directory |
|
Read configuration from ini file, if module is provided, module configuration is read from Ouputs, if fileName is provided configuration is read from fileName |
|
Read and optionally compare configuration files (if a local and default are both provided) and inform user of the eventual differences. |
|
set pandas element to np.nan if it is a string nan |
|
Write cfg configuration to allConfigurations.csv |
|
Save configuration used to text file in Outputs/moduleName/configurationFiles/modName.ini or optional to filePath and with fileName |
|
write a dictionary to a json file |