opto.trace.nodes.AbstractNode.id

Contents

opto.trace.nodes.AbstractNode.id#

property AbstractNode.id#

Get the identifier part of the node’s name.

Returns:

The identifier portion of the node’s name (part after the colon).

Return type:

str

Notes

The name property is a string formatted as “name:identifier”. This property splits that string using the colon (“:”) delimiter and returns the second part, which corresponds to the identifier. Ensure that the name attribute contains a colon (“:”) to avoid index errors during the split operation.