in3Utils.fileHandlerUtils.splitIniValueToArraySteps¶
- splitIniValueToArraySteps(cfgValues, returnList=False)[source]¶
read values in ini file and return numpy array or list if the items are strings; values can either be separated by | or provided in start:end:numberOfSteps format if separated by : or $ also optional add one additional value using & if format of refVal$percent$steps is used - an array is created with +- percent of refVal in nsteps
- Parameters
cfgValues (str) – values of parameter to be read from ini file
returnList (bool) – if True force to return values as list
- Returns
items – values as 1D numpy array or list (in the case of strings)
- Return type
1D numpy array or list