def condition(DNA):
     output = True
     if DNA:
         for num_layer in range(0, len(DNA) - 3):
             layer = DNA[num_layer]
             x_l = layer[3]
             y_l = layer[4]
             output = output and (x_l < x) and (y_l < y)
     if output:
         return max_layer(DNA, 3)
Example #2
0
 def condition(DNA):
     return max_layer(DNA, 10)