@@ -36,7 +36,7 @@ def LineGenerator(self, startPosition):
3636 while True :
3737 turn , positionElapsedTime = (yield )
3838 #turnElapsedTime = turnClock.restart()
39- # print "Turn elapsed", turnElapsedTime
39+ #print "Turn elapsed", turnElapsedTime
4040 #line = self.smallestLineFromPath(previousTurn, turn) # TEST
4141 line = self ._lineFromPath (startTurn , previousTurn , turn , constraints ) # ,directions)
4242 if line is not None : # if turn not satisfied by vector
@@ -54,24 +54,25 @@ def LineGenerator(self, startPosition):
5454 startTurn = previousTurn # !!! current turn is part of next PathLine
5555 didLastEmitCusp = True
5656 else :
57- print "Skipping consecutive cusps"
57+ #print "Skipping consecutive cusps"
58+ pass
5859 # else current path (all turns) still satisfied by a PathLine: wait
5960
6061 previousTurn = turn # Roll forward !!! Every turn, not just on send()
6162 except Exception :
6263 # !!! GeneratorExit is a BaseException, not an Exception
6364 # Unexpected programming errors, which are obscured unless caught
64- print "Exception in LineGenerator"
65+ # print "Exception in LineGenerator"
6566 traceback .print_exc ()
6667 raise
6768 except GeneratorExit :
68- print "closing line generator"
69+ # print "closing line generator"
6970 if previousTurn != startTurn :
70- print "closing line generator"
71+ # print "closing line generator"
7172 #print "startTurn, previousTurn", startTurn, previousTurn
7273 ''' Have turn not sent. Fabricate a PathLine and send() it now. '''
7374 self .curveGenerator .send ((PathLine (startTurn , previousTurn ), False ))
74- print "closed line generator"
75+ # print "closed line generator"
7576
7677
7778
@@ -112,7 +113,7 @@ def _lineFromPath(self, startTurn, previousTurn, currentTurn, constraints, direc
112113 if len(directions) > 3:
113114 # a path with four directions can't be approximated with one vector
114115 # end point is starting pixel of segment ???
115- print "Four directions"
116+ # print "Four directions"
116117 self.resetLineFittingFilter()
117118 # Note end is previousTurn, not current Turn
118119 return PathLine(startTurn, previousTurn)
@@ -122,7 +123,7 @@ def _lineFromPath(self, startTurn, previousTurn, currentTurn, constraints, direc
122123 vectorViaAllTurns = currentTurn - startTurn
123124
124125 if constraints .isViolatedBy (vector = vectorViaAllTurns ):
125- # print "Constraint violation", constraints, "vector", vectorViaAllTurns
126+ #print "Constraint violation", constraints, "vector", vectorViaAllTurns
126127 result = self ._interpolateConstraintViolating (startTurn = startTurn ,
127128 lastSatisfyingTurn = previousTurn ,
128129 firstNonsatisfingTurn = currentTurn )
@@ -144,11 +145,11 @@ def _forceLineFromPath(self, startTurn, previousTurn, currentTurn, constraints,
144145
145146 if startTurn == currentTurn :
146147 ''' A reversal. A line from start to current would be Null. '''
147- print "Reversal"
148+ # print "Reversal"
148149 assert previousTurn != startTurn
149150 return PathLine (startTurn , previousTurn )
150151 else :
151- ## print "Force PathLine", startTurn, currentTurn
152+ ##print "Force PathLine", startTurn, currentTurn
152153 return PathLine (startTurn , currentTurn )
153154
154155
0 commit comments