def setZStructuralNodeAspects(self, zStructuralNode, add=True):
        for aspect in aspectModels[self.aspectModel]:
            if (zStructuralNode.aspects in aspect or # might be added as custom-entered value (typed dim)
                zStructuralNode.hasAspect(aspect, inherit=True)): #implies inheriting from other z axes
                if aspect == Aspect.DIMENSIONS:
                    for dim in (zStructuralNode.aspectValue(Aspect.DIMENSIONS, inherit=True) or emptyList):
                        if add:
                            self.zAspectStructuralNodes[dim].add(zStructuralNode)
                        else:
                            self.zAspectStructuralNodes[dim].discard(zStructuralNode)
                else:
                    if add:
                        self.zAspectStructuralNodes[aspect].add(zStructuralNode)
                    else:
                        self.zAspectStructuralNodes[aspect].discard(zStructuralNode)
dataset/ETHPy150Open Arelle/Arelle/arelle/ViewWinRenderedGrid.py/ViewRenderedGrid.setZStructuralNodeAspects/swapped operands of `in`