ana4Stats.probAna.createSampleFromConfig

createSampleFromConfig(avaDir, cfgProb, comMod, fileOverride='')[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

  • fileOverride (pathlib path) – optional - path to configuration file for comMod settings (for all parameters except those to be varied)

Returns

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

dictionary used to pass parameter variation values
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