ana3AIMEC.aimecTools.fetchReferenceSimNo

fetchReferenceSimNo(avaDir, inputsDF, comModule, cfgSetup)[source]

Define reference simulation used for aimec analysis.

if com1DFA is used and a varParList is provided, the simulations are ordered and the referenceSimValue is used to define the reference.

otherwise, if a referenceSimName is provided, the reference is based on this name

otherwise, the first file found is used as reference

Parameters
  • avaDir (str) – path to avalanche directory

  • inputsDF (dataFrame) – dataFrame with simulations to analyze and path to result files

  • comModule (str) – computational module used to produce the results to analyze

  • cfgSetup (configParser object) – configuration for aimec - referenceSimValue, varParList used here

Returns

  • refSimulation (str) – name of the simulation used as reference

  • inputsDF (dataFrame) – dataFrame with simulations to analyze and path to result files If com1DFA = comModule and a variation parameter was specified, the com1DFA configuration is merged to the inputsDF

  • colorVariation (boolean) – True if a color variation should be applied in the plots