MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / _make_relative_path

Method _make_relative_path

opcua/common/node.py:477–489  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

475 return Node(self.server, result.Targets[0].TargetId)
476
477 def _make_relative_path(self, path):
478 rpath = ua.RelativePath()
479 for item in path:
480 el = ua.RelativePathElement()
481 el.ReferenceTypeId = ua.TwoByteNodeId(ua.ObjectIds.HierarchicalReferences)
482 el.IsInverse = False
483 el.IncludeSubtypes = True
484 if isinstance(item, ua.QualifiedName):
485 el.TargetName = item
486 else:
487 el.TargetName = ua.QualifiedName.from_string(item)
488 rpath.Elements.append(el)
489 return rpath
490
491 def read_raw_history(self, starttime=None, endtime=None, numvalues=0):
492 """

Callers 1

get_childMethod · 0.95

Calls 1

from_stringMethod · 0.45

Tested by

no test coverage detected