def check_bounds()

in data/gen_data_collisions.py [0:0]


    def check_bounds(self, z, max_H=None, max_W=None):
        max_H = max_H or self.grid_size
        max_W = max_W or self.grid_size
        return z[0] > 0 and z[0] < max_H - 1 and z[1] > 0 and z[1] < max_W - 1