BasicTools.Helpers.ParserHelper module

Functions to parse text into different types

BasicTools.Helpers.ParserHelper.AddCommonConstants()[source]
BasicTools.Helpers.ParserHelper.AddToGlobalDictionary(key, value)[source]
BasicTools.Helpers.ParserHelper.ApplyGlobalDictionary(string)[source]
BasicTools.Helpers.ParserHelper.CheckIntegrity()[source]
class BasicTools.Helpers.ParserHelper.LocalVariables(prePostChars=('{', '}'))[source]

Bases: BaseOutputObject

Apply(string)[source]
SetVariable(key, value)[source]
UnsetVariable(key)[source]
BasicTools.Helpers.ParserHelper.Read(inputData, inout)[source]
BasicTools.Helpers.ParserHelper.ReadBool(string)[source]
BasicTools.Helpers.ParserHelper.ReadBools(string)[source]
BasicTools.Helpers.ParserHelper.ReadFloat(string)[source]
BasicTools.Helpers.ParserHelper.ReadFloats(string)[source]
BasicTools.Helpers.ParserHelper.ReadInt(string)[source]
BasicTools.Helpers.ParserHelper.ReadInts(string)[source]
BasicTools.Helpers.ParserHelper.ReadProperties(data, props, obj_or_dic, typeConversion=True)[source]
BasicTools.Helpers.ParserHelper.ReadScalar(inputData, inputType)[source]
BasicTools.Helpers.ParserHelper.ReadString(string, d=None)[source]
BasicTools.Helpers.ParserHelper.ReadStrings(string)[source]
BasicTools.Helpers.ParserHelper.ReadVector(string, dtype)[source]
BasicTools.Helpers.ParserHelper.ReadVectorPhiThetaMag(string, normalised=False)[source]
BasicTools.Helpers.ParserHelper.ReadVectorXY(string, normalised=False)[source]
BasicTools.Helpers.ParserHelper.ReadVectorXYZ(string, normalised=False)[source]
BasicTools.Helpers.ParserHelper.RemoveFromGlobalDictionary(key)[source]
BasicTools.Helpers.ParserHelper.TestFunction(func, string, correctVal)[source]