com1DFA.com1DFA.runOrLoadCom1DFA

runOrLoadCom1DFA(avalancheDir, cfgMain, runDFAModule=True, cfgFile='', deleteOutput=True)[source]

Run or load DFA results depending on runDFAModule=True or False

Parameters
  • avalancheDir (pathlib path) – avalanche directory path

  • cfgMain (configParser object) – main avaframe configuration

  • runDFAModule (bool) – True to run the DFA simulation Falso to load the results dataFrame and dem

  • cfgFile (str or pathlib path) – path to cfgFile to read overall configuration - optional if not provided the local or default config is used

  • deleteOutput (Boolean) – True to delete the com1DFA output dir before running com1DFA (used only if runDFAModule=True)

Returns

  • dem (dict) – dem dictionary

  • simDF (dataFrame) – simulation results dataframe

  • resTypeList (list) – list of output files resTypes available (ppr, pft…)