com1DFA.deriveParameterSet.setPercentVariation
- setPercentVariation(cfg, variationFactor, thNameId)[source]
determine thickness value if set from percentVariation and set from shp file and update percentVariation value that is used for exactely this sim
this is required for reproducing this sim when using its configuration file - so that in the percentVariation parameter it is only one value e.g. +50$1 so +50% in 1 step
- Parameters
cfg (configparser object) – comModule configuration file with info on thickness settings
variationFactor (float) – value of percent variation in terms of required multiplication of reference value (e.g. variationFactor= 0.5 - a variation of 50% performed by multiplication of reference value times variationFactor)
thNameId (str) – name of thickness feature (e.g. relTh0 if release thickness and feature with id 0)
- Returns
variationIni – percentVariation parameter value for this sim to be added in cfg file
- Return type
str