1. iorodeo
  2. capillary_sensor_enclosure

Commits

jorodeo  committed 1bea158

Commented out unused function.

  • Participants
  • Parent commits 1ef902b
  • Branches default

Comments (0)

Files changed (2)

File capillary_enclosure.py

View file
  • Ignore whitespace
 
         self.params['hole_list'].extend(hole_list)
 
-    def add_led_cable_hole(self):
-        hole_list = []
-        hole_width = self.params['led_cable_hole_width']
-        x,y,z = self.params['inner_dimensions']
+    #def add_led_cable_hole(self):
+    #    hole_list = []
+    #    hole_width = self.params['led_cable_hole_width']
+    #    x,y,z = self.params['inner_dimensions']
 
-        x_pos = 0
-        y_pos = 0.5*z - 0.5*hole_width 
-        hole = {
-                'panel'    : 'front',
-                'type'     : 'round',
-                'location' : (x_pos,y_pos),
-                'size'     : hole_width,
-                }
-        hole_list.append(hole)
+    #    x_pos = 0
+    #    y_pos = 0.5*z - 0.5*hole_width 
+    #    hole = {
+    #            'panel'    : 'front',
+    #            'type'     : 'round',
+    #            'location' : (x_pos,y_pos),
+    #            'size'     : hole_width,
+    #            }
+    #    hole_list.append(hole)
 
-        x_pos = 0
-        y_pos = 0.5*z
-        hole = {
-                'panel'    : 'front', 
-                'type'     : 'square', 
-                'location' : (x_pos, y_pos), 
-                'size'     : (hole_width, hole_width),
-                }
-        hole_list.append(hole)
-        self.params['hole_list'].extend(hole_list)
+    #    x_pos = 0
+    #    y_pos = 0.5*z
+    #    hole = {
+    #            'panel'    : 'front', 
+    #            'type'     : 'square', 
+    #            'location' : (x_pos, y_pos), 
+    #            'size'     : (hole_width, hole_width),
+    #            }
+    #    hole_list.append(hole)
+    #    self.params['hole_list'].extend(hole_list)
 
     def make_rubber_band_notch(self):
         hole_list = []
     def make_led_pcb(self):
         led_x, led_y, led_z = self.params['led_pcb_dimensions']
         hole_list = self.get_led_holes(hole_type='through')
+        #print hole_list
         self.led_pcb = plate_w_holes(led_x, led_y, led_z, holes=hole_list)
 
     def make_diffuser(self):
     def add_led_cable_hole(self):
         hole_size_x, hole_size_y = self.params['led_cable_hole_size']
         hole_pos_x, hole_pos_y = self.params['led_cable_hole_pos']
+        #print hole_pos_x, hole_pos_y
         hole = {
                 'panel'     : 'bottom',
                 'type'      : 'square',

File make_enclosure.py

View file
  • Ignore whitespace
 
 part_assembly = enclosure.get_assembly(
         show_top=False,
-        show_bottom=False, 
+        show_bottom=True, 
         show_front=False,
         show_back=False,
         show_left=False,
         show_right=False,
         show_standoffs=True,
         show_capillary=True,
-        show_sensor=True,
+        show_sensor=False,
         show_diffuser=True,
         show_led_pcb=True,
         show_guide_plates=True,
         )
 
 
+#print enclosure.standoff_xy_pos
 box_projection = enclosure.get_box_projection()
 diffuser_projection = enclosure.get_diffuser_projection()
 top_guide_projection = enclosure.get_guide_top_projection()