diff --git a/python/MDSplus/tree.py b/python/MDSplus/tree.py index f1ca8dbac8..6bbc8c796a 100644 --- a/python/MDSplus/tree.py +++ b/python/MDSplus/tree.py @@ -694,7 +694,7 @@ def __deepcopy__(self, memo): def __eq__(self, obj): if isinstance(obj, (Tree,)): - return self.ctx == obj.ctx + return self.ctx.value == obj.ctx.value return False def __ne__(self, obj): return not self.__eq__(obj) @@ -1047,7 +1047,7 @@ def setDefault(self, node): old = self.default if not isinstance(node, TreeNode): raise TypeError('default node must be a TreeNode') - if not node.ctx == self.ctx: + if not node.ctx.value == self.ctx.value: raise TypeError('TreeNode must be in same tree') _exc.checkStatus( _TreeShr._TreeSetDefaultNid(self.ctx,