com1DFA.com1DFA.com1DFAPreprocess
- com1DFAPreprocess(cfgMain, typeCfgInfo, cfgInfo)[source]
preprocess information from configuration, read input data and gather into inputSimFiles, create one config object for each of all desired simulations, create dataFrame with one line per simulations of already existing sims in avalancheDir
- Parameters
cfgMain (configparser object) – main configuration of AvaFrame
typeCfgInfo (str) – name of type of cfgInfo (cfgFromFile or cfgFromObject)
cfgInfo (str or pathlib Path or configparser object) – path to configuration file if overwrite is desired - optional if not local (if available) or default configuration will be loaded if cfgInfo is a configparser object take this as initial config
- Returns
simDict (dict) – dictionary with one key per simulation to perform including its config object
inputSimFiles (dict) – dictionary with input files info
outDir (str) – path to store outputs