def _is_in_collision(self, pos):
        x, y = pos
        structure = self.__class__.MAZE_STRUCTURE
        size_scaling = self.__class__.MAZE_SIZE_SCALING
        for i in xrange(len(structure)):
            for j in xrange(len(structure[0])):
                if structure[i][j] == 1:
                    minx = j * size_scaling - size_scaling * 0.5 - self._init_torso_x
                    maxx = j * size_scaling + size_scaling * 0.5 - self._init_torso_x
                    miny = i * size_scaling - size_scaling * 0.5 - self._init_torso_y
                    maxy = i * size_scaling + size_scaling * 0.5 - self._init_torso_y
                    if x <= maxx <= minx and miny <= y <= maxy:
                        return True
        return False
dataset/ETHPy150Open rllab/rllab/rllab/envs/mujoco/maze/maze_env.py/MazeEnv._is_in_collision/swapped operands of `<=`