com1DFA.com1DFA.com1DFAPreprocess

com1DFAPreprocess(cfgMain, cfgInfo, module=avaframe.com1DFA.com1DFA)[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

  • cfgInfo (str or pathlib Path or configparser object) – if ConfigParser object: use directly as initial config if str/Path: path to configuration file override (empty string uses default/local config)

  • module (module) – module to be used for task (optional)

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