titus.genpy.get

titus.genpy.get(obj, path, arrayErrCode, mapErrCode, fcnName, pos)[source]

Apply an “attr”, “cell”, or “pool” extraction path to an object.

Parameters:
  • obj (any object) – the object to extract an item from
  • path (list of integers and strings) – attribute labels from outermost to innermost
  • arrayErrCode (integer) – error code to raise if an array index is not found
  • mapErrCode (integer) – error code to raise if a map key is not found
  • fcnName (string) – function name for error reporting
  • pos (string or None) – position from locator marks for error reporting
Return type:

an object

Returns:

the extracted object