Indraniel Das  committed 3160198

+ adjust control variable in list comprehension

- Using k as the control variable in the list comprehension overrides
the previous definition of k that is being calculated (lines 33-49).
This previous definition serves to identify which starting index to
begin making marker position adjustments.

  • Participants
  • Parent commits 993a298
  • Branches master

Comments (0)

Files changed (1)


                         self.heights[-1] = item
             # increment all positions greater than k
-            self.pos = [k if i < k else k + 1 for i,k in enumerate(self.pos)]
+            self.pos = [j if i < k else j + 1 for i,j in enumerate(self.pos)]
             self.npos = [x + y for x,y in zip(self.npos, self.dn)]