#NEWLINE# def is_edge_layer( bga_info , pad_pos , rows ) : #NEWLINE# #INDENT# return ( is_pad_outer_ring ( bga_info , bga_info , rows ) and ( ( ( pad_pos . x >= rows ) and ( ( bga_info . columns - pad_pos . x ) > rows ) ) != ( ( pad_pos . y >= rows ) and ( ( bga_info . rows - pad_pos . y ) > rows ) ) ) )