Skip to content

Commit

Permalink
Exchange toprightNodes and bottomrightNodes in buildSubregions()
Browse files Browse the repository at this point in the history
  • Loading branch information
petitquentin committed Aug 2, 2020
1 parent 4e4ad85 commit b9c9f05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fa2/fa2util.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,17 +188,17 @@ def buildSubRegions(self):
bottomleftNodes = []
for n in leftNodes:
if n.y < self.massCenterY:
topleftNodes.append(n)
else:
bottomleftNodes.append(n)
else:
topleftNodes.append(n)

toprightNodes = []
bottomrightNodes = []
for n in rightNodes:
if n.y < self.massCenterY:
toprightNodes.append(n)
else:
bottomrightNodes.append(n)
else:
toprightNodes.append(n)

if len(topleftNodes) > 0:
if len(topleftNodes) < len(self.nodes):
Expand Down

0 comments on commit b9c9f05

Please sign in to comment.