Clean up output so that it does not print routing grid debug.

This commit is contained in:
Matt Guthaus 2017-04-24 12:13:01 -07:00
parent 9478d6f94d
commit e960cbe9d6
2 changed files with 4 additions and 1 deletions

View File

@ -249,6 +249,7 @@ class grid:
self.q.put((predicted_cost,newpath))
#self.view()
# View the unable to route result.
self.view()
debug.error("Unable to route path. Expand area?",-1)

View File

@ -154,13 +154,15 @@ class router:
self.set_target(dest)
self.rg.view()
# View the initial route pins and blockages for debugging
#self.rg.view()
# returns the path in tracks
(self.path,cost) = self.rg.route(cost_factor)
debug.info(1,"Found path: cost={0} ".format(cost))
debug.info(2,str(self.path))
self.set_path(self.path)
# View the final route for debugging
self.rg.view()
return