state_idx = **idx_to_state**(env, state) how can I fix this? idx_to_state position_idx = int((state[0] - env_low[0]) / env_distance[0]) TypeError: only size-1 arrays can be converted to Python scalars
state_idx = idx_to_state(env, state)
how can I fix this?
idx_to_state
position_idx = int((state[0] - env_low[0]) / env_distance[0])
TypeError: only size-1 arrays can be converted to Python scalars