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. Given a configParser object cfg, |
|
Compare configuration files (if a local and default are both provided) and inform user of the eventuel differences. |
|
create dictionary from configparser object |
|
convert a string DF to a numerical one |
|
create configParser object from dict |
|
Read configurations from all simulations configuration ini files from directory |
|
thickness settings different if read from shpfile - requires more complex filtering if read from shp - thickness values are provided per feature!! for example relTh = ‘’ but relTh0 = 1 is appended for feature with id 0, relTh1 for feature with id 1, etc. |
|
Filter simulations using a list of parameters and a pandas dataFrame of simulation configurations if ~ is used as a prefix for a parameter - it is filtered according to values that do NOT match the value provided with the ~Parameter |
|
Returns the default configuration for a given module returns a configParser object |
|
Returns the general configuration for avaframe returns a configParser object |
|
Returns the configuration for a given module returns a configParser object |
|
Filter simulations results using a list of parameters and a flag if in ascending or descending order |
|
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 |
|
remove simulations from simDF that do not match filtering critera |
|
Write cfg configuration to allConfigurations.csv |
|
Save configuration used to text file in Outputs as moduleName_settings.ini or optional in Outputs/moduleName/configurationFiles/filenName.ini |
|
write a dictionary to a json file |