#NEWLINE# @ classmethod #NEWLINE# def from_excellon( cls , line , settings , **kwargs ) : #NEWLINE# #INDENT# x_coord = None #NEWLINE# y_coord = None #NEWLINE# if ( line [ 0 ] == 'X' ) : #NEWLINE# #INDENT# splitline = line . strip ( 'X' ) . split ( 'Y' ) #NEWLINE# x_coord = parse_gerber_value ( splitline [ 0 ] , settings . format , settings . zero_suppression ) #NEWLINE# if ( len ( splitline ) == 2 ) : #NEWLINE# #INDENT# y_coord = parse_gerber_value ( splitline [ 1 ] , settings . format , settings . zero_suppression ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# y_coord = parse_gerber_value ( line . strip ( ' Y' ) , c . format , settings . zero_suppression ) #NEWLINE# #UNINDENT# c = cls ( x_coord , y_coord , ** kwargs ) #NEWLINE# c . units = settings . units #NEWLINE# return c