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
Fix the sdf bug by checking the arguments passed #346
Conversation
Hello @tushar5526! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2021-01-07 20:26:40 UTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @tushar5526,
Thank you for this. Overall, it looks good but could you add a test, please?
Also, I need to test it locally.
Thank you
Sure @skoudoro. Thanks for the review 👍 |
I have added the tests @skoudoro.
are failing by default. |
Hi @tushar5526 , A quick tip, you can do |
Thank you for the tip @Nibba2018. Finally no PEP issues :p
These two tests are failing on the latest master-branch too. Here is the full summary
|
@tushar5526 Your branch is failing on the same tests on my environment too. |
@Nibba2018 Yes, those tests are failing due to some other issue, and not due to any changes made in this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we need to make those tests more robust.
But your code looks good. Thank you for this fix @tushar5526! merging
Closes #310
If enough primitives are not provided, we default to a torus. Another possible solution could be trying to broadcast the NumPy arrays before defaulting to a torus.