Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can go beyond the code line " idx_to_state" #13

Open
salmankdurrani opened this issue Nov 7, 2023 · 0 comments
Open

Can go beyond the code line " idx_to_state" #13

salmankdurrani opened this issue Nov 7, 2023 · 0 comments

Comments

@salmankdurrani
Copy link

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

@salmankdurrani salmankdurrani changed the title Can go beyond the code line Can go beyond the code line " idx_to_state" Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant