#NEWLINE# def _parse( self , board ) : #NEWLINE# #INDENT# general = sexp . find ( board , 'general' ) #NEWLINE# self . bounds = [ float ( x ) for x in sexp . find ( general , 'area' ) [ 1 : ] ] #NEWLINE# self . width = ( self . bounds [ 2 ] - self . bounds [ 0 ] ) #NEWLINE# self . height = ( self . bounds [ 3 ] - self . bounds [ 1 ] ) #NEWLINE# for module in sexp . find_all ( board , 'module' ) : #NEWLINE# #INDENT# self . modules . append ( Module ( module ) ) #NEWLINE# #UNINDENT# self . _parse_edges ( board )