original_docstring: This is executed by the user to generate the qgeometry for the
          component.
docstring: This is executed by the user to generate the qgeometry for the
  component.
docstring_tokens: This is executed by the user to generate the qgeometry for the component .
code: def make(self):
          """This is executed by the user to generate the qgeometry for the
          component."""
  
          p = self.p
          trace_width = p.trace_width
          trace_width_half = trace_width / 2
          lead_length = p.lead_length
          trace_gap = p.trace_gap
          #########################################################
  
          # Geometry of main launch structure
          launch_pad = draw.Polygon([(0, trace_width_half),
                                     (-.122, trace_width_half + .035),
                                     (-.202, trace_width_half + .035),
                                     (-.202, -trace_width_half - .035),
                                     (-.122, -trace_width_half - .035),
                                     (0, -trace_width_half),
                                     (lead_length, -trace_width_half),
                                     (lead_length, +trace_width_half),
                                     (0, trace_width_half)])
  
          # Geometry pocket (gap)
          pocket = draw.Polygon([(0, trace_width_half + trace_gap),
                                 (-.122, trace_width_half + trace_gap + .087),
                                 (-.25, trace_width_half + trace_gap + .087),
                                 (-.25, -trace_width_half - trace_gap - .087),
                                 (-.122, -trace_width_half - trace_gap - .087),
                                 (0, -trace_width_half - trace_gap),
                                 (lead_length, -trace_width_half - trace_gap),
                                 (lead_length, +trace_width_half + trace_gap),
                                 (0, trace_width_half + trace_gap)])
  
          # These variables are used to graphically locate the pin locations
          main_pin_line = draw.LineString([(lead_length, trace_width_half),
                                           (lead_length, -trace_width_half)])
  
          # Create polygon object list
          polys1 = [main_pin_line, launch_pad, pocket]
  
          # Rotates and translates all the objects as requested. Uses package functions in
          # 'draw_utility' for easy rotation/translation
          polys1 = draw.rotate(polys1, p.orientation, origin=(0, 0))
          polys1 = draw.translate(polys1, xoff=p.pos_x, yoff=p.pos_y)
          [main_pin_line, launch_pad, pocket] = polys1
  
          # Adds the object to the qgeometry table
          self.add_qgeometry('poly', dict(launch_pad=launch_pad), layer=p.layer)
  
          # Subtracts out ground plane on the layer its on
          self.add_qgeometry('poly',
                             dict(pocket=pocket),
                             subtract=True,
                             layer=p.layer)
  
          # Generates the pins
          self.add_pin('tie', main_pin_line.coords, trace_width)
code_tokens: def make ( self ) : p = self . p trace_width = p . trace_width trace_width_half = trace_width / 2 lead_length = p . lead_length trace_gap = p . trace_gap launch_pad = draw . Polygon ( [ ( 0 , trace_width_half ) , ( - .122 , trace_width_half + .035 ) , ( - .202 , trace_width_half + .035 ) , ( - .202 , - trace_width_half - .035 ) , ( - .122 , - trace_width_half - .035 ) , ( 0 , - trace_width_half ) , ( lead_length , - trace_width_half ) , ( lead_length , + trace_width_half ) , ( 0 , trace_width_half ) ] ) pocket = draw . Polygon ( [ ( 0 , trace_width_half + trace_gap ) , ( - .122 , trace_width_half + trace_gap + .087 ) , ( - .25 , trace_width_half + trace_gap + .087 ) , ( - .25 , - trace_width_half - trace_gap - .087 ) , ( - .122 , - trace_width_half - trace_gap - .087 ) , ( 0 , - trace_width_half - trace_gap ) , ( lead_length , - trace_width_half - trace_gap ) , ( lead_length , + trace_width_half + trace_gap ) , ( 0 , trace_width_half + trace_gap ) ] ) main_pin_line = draw . LineString ( [ ( lead_length , trace_width_half ) , ( lead_length , - trace_width_half ) ] ) polys1 = [ main_pin_line , launch_pad , pocket ] polys1 = draw . rotate ( polys1 , p . orientation , origin = ( 0 , 0 ) ) polys1 = draw . translate ( polys1 , xoff = p . pos_x , yoff = p . pos_y ) [ main_pin_line , launch_pad , pocket ] = polys1 self . add_qgeometry ( 'poly' , dict ( launch_pad = launch_pad ) , layer = p . layer ) self . add_qgeometry ( 'poly' , dict ( pocket = pocket ) , subtract = True , layer = p . layer ) self . add_pin ( 'tie' , main_pin_line . coords , trace_width )
short_docstring: This is executed by the user to generate the qgeometry for the
  component.
short_docstring_tokens: This is executed by the user to generate the qgeometry for the component .
comment: """This is executed by the user to generate the qgeometry for the
          component."""$SEP$#########################################################$SEP$# Geometry of main launch structure$SEP$# Geometry pocket (gap)$SEP$# These variables are used to graphically locate the pin locations$SEP$# Create polygon object list$SEP$# Rotates and translates all the objects as requested. Uses package functions in$SEP$# 'draw_utility' for easy rotation/translation$SEP$# Adds the object to the qgeometry table$SEP$# Subtracts out ground plane on the layer its on$SEP$# Generates the pins