#NEWLINE# @ classmethod #NEWLINE# def from_excellon( cls , line , **kwargs ) : #NEWLINE# #INDENT# ' Create a ToolSelectionStmt from an excellon file line.\n\n        Parameters\n        ----------\n        line : string\n            Line from an Excellon file\n\n        Returns\n        -------\n        tool_statement : ToolSelectionStmt\n            ToolSelectionStmt representation of `line.`\n        ' #NEWLINE# line = line [ 1 : ] #NEWLINE# compensation_index = None #NEWLINE# if ( len ( line ) <= 3 ) : #NEWLINE# #INDENT# tool = int ( line ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# tool = int ( line [ : 2 ] ) #NEWLINE# compensation_index = int ( line [ 2 : ] ) #NEWLINE# #UNINDENT# return cls ( tool , compensation_index , ** kwargs )