From 556c38e4b9bb3627f80f109da122298070d36bc3 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Wed, 7 Apr 2021 14:51:32 +0200 Subject: [PATCH] Bug in spares.py, "rtag", the root was repeated in each level. --- cumulus/src/plugins/alpha/block/spares.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cumulus/src/plugins/alpha/block/spares.py b/cumulus/src/plugins/alpha/block/spares.py index da6d564b..a6c54d50 100644 --- a/cumulus/src/plugins/alpha/block/spares.py +++ b/cumulus/src/plugins/alpha/block/spares.py @@ -283,8 +283,8 @@ class QuadTree ( object ): return False @staticmethod - def _create ( spares, parent, area, rtag, raiseError=False ): - childRtag = parent.rtag+'_'+rtag if parent else rtag + def _create ( spares, parent, area, tag, raiseError=False ): + childRtag = parent.rtag+'_'+tag if parent else tag if QuadTree.isUsedArea( spares, area, childRtag, raiseError ): return None qt = QuadTree( spares, parent, area, childRtag ) @@ -307,10 +307,7 @@ class QuadTree ( object ): self.bufferNet = None self.pool = BufferPool( self ) self.plugs = [] - if self.parent and self.parent.rtag != '': - self.rtag = self.parent.rtag + '_' + rtag - else: - self.rtag = rtag + self.rtag = rtag def destroy ( self ): if self.bl: self.bl.destroy()