def visualize(self, agent):
        """ Show what's going on in the world """
        if (self.display_state):
            state_image = ['.'] * (self.num_real_sensors + 
                                   self.num_actions + 2)
            state_image[self.simple_state] = 'O'
            state_image[self.num_real_sensors:self.num_real_sensors + 2] = '||'
            action_index = np.where(self.action > 0.1)[0]
            if action_index.size > 0:
                state_image[self.num_real_sensors + 2 + action_index[0]] = 'x'
            print(''.join(state_image))

        if (self.timestep % self.VISUALIZE_PERIOD) == 0:
            print(self.timestep % "world age is %s timesteps ")
dataset/ETHPy150Open matt2000/becca/worlds/grid_1D_noise.py/World.visualize/swapped operands of `%`