Commits

saar drimer committed 9388a46

cleanup

  • Participants
  • Parent commits cc98092

Comments (0)

Files changed (1)

             new_coord = Point(new_coord.group('x'), new_coord.group('y'))
             new_coord.y = -new_coord.y # flip the 'y' as usual
             if coord != new_coord:
-                print "  * updating location of %s" % refdef
+                print "  * updating the location of %s" % refdef
                 tmp = [new_coord.x, new_coord.y]
                 cfg['board']['components'][layer][refdef]['location'] = tmp
 
     f.close() 
 
 
-#    layers = {}
-# 
-#    ns =  {'inkscape':cfg['namespace']['inkscape'], 'svg':cfg['namespace']['svg']}
-# 
-#    # get layers
-#    for pcb_layer in utils.get_surface_layers(cfg):
-#        layers[pcb_layer] = svg_in.find("//svg:g[@inkscape:label='%s']" % pcb_layer, 
-#                                         namespaces=ns)
-# 
-#        # get pad placement
-#        pads = layers[pcb_layer].findall(".//svg:g[@refdef]",
-#                                       namespaces=ns)
-#       
-#        for pad in pads:
-#            refdef = pad.get('refdef')
-#            transform = pad.get('transform')
-#            print refdef, transform
-# 
-#        print
-
     return
+
+