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

Minor modifications to the code #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SebsBarbas
Copy link

I added a try ... Except clause because when I ran the: not hasattr() it yielded the following error: "'Key normals not found in TensorMap'". I checked on the internet and could not find a way of solving it.

Also, there was a library missing in the requirements

I added a try ... Except clause because when I ran the: not hasattr() it
yielded the following error: "'Key normals not found in TensorMap'". I
checked on the internet and could not find a way of solving it.

Also, there was a library missing in the requirements
@mmattamala
Copy link
Contributor

Thanks a lot @SebsBarbas ! Does this mean that it is failing to compute the normals if they are not available?

@SebsBarbas
Copy link
Author

Sorry for the late response, I did not see the notification. The issue I had was that for some reason the line

hasattr(self._cloud.point, "normals")

Was throwing an exception error saying that the normals were not there. It is weird as this is exactly what hasattr should be solving, but I had to enclose it in a try except specifically to allow the code to run. Afterwards, the whole thing ran smoothly. If you want to reproduce the error let me know and I will share with you the files I used.

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

Successfully merging this pull request may close these issues.

2 participants