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

nodes_ids #1

Open
lsx1980 opened this issue Jul 1, 2023 · 1 comment
Open

nodes_ids #1

lsx1980 opened this issue Jul 1, 2023 · 1 comment

Comments

@lsx1980
Copy link

lsx1980 commented Jul 1, 2023

Traceback (most recent call last):
File "/home/suxing/pc2graph/pc2graph/example_single.py", line 64, in
nodes = point_cloud[nodes_ids]
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices

@aldinorizaldy
Copy link

don't know if you are still around, but simply convert dict_keys to list solves the problem
nodes = point_cloud[list(nodes_ids)]

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

2 participants