ana4Stats.probAna.createSampleFromConfig

createSampleFromConfig(avaDir, cfgProb, comMod)[source]

Create a sample of parameters for a desired parameter variation, and draw nSample sets of parameter values if thickness values read from shp for comMod, convert sample values for these

Parameters
  • avaDir (pathlib path) – path to avalanche directory

  • cfgProb (configparser object) – configuration settings for parameter variation

  • comMod (computational module) – module to perform then sims for parameter variation

Returns

paramValuesDList – list of paramValuesD (multiple if multiple release area scenarios)

  • names: list, list of parameter names (that are varied)

  • values: numpy nd array, as many rows as sets of parameter values and as many rows as parameters

  • typeList: list, list of types of parameters (float, …)

  • thFromIni: str, str of parameter names where the base value is read from shape

Return type

list