-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 for #7135 (error with named argument "width") #7136
base: main
Are you sure you want to change the base?
Conversation
* Add the missing comma before the first argument's name * Add the missing spaces in the function description
Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes. |
I'd happily update the CHANGELOG.md file, but I don't think it's being maintained... so I wouldn't know where to add the change description, nor what good it would do... |
Good catch and fix. :) The last three lines in the docs are also corrupted:
If it is no problem, can you check if your fix also resolves this? |
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.
Thanks @joseph-sch ! Looks good.
Regarding the mangled documentation, apparently it's a sphinx parsing issue caused by the string in the default argument (i.e. by encountering quotes in the default argument expression The issue does not appear when a custom docstring is specified, so that could be a workaround. Indeed, compare the following two ( In the second case, the word "Optional" and the default value are not present alongside each argument, but the According to ChatGPT, another solution would be to "Create a static default static const core::Device default_device("CPU:0"); and use that instead of the expression There could also be a configuration of sphinx that avoids the issue, and that would be ideal. I'm afraid I didn't manage to build the C++ code yet (I tried only on WSL so far) and I don't manage to rebuild the sphinx documentation after modifying the sources, so I can't check by myself yet. I suggest opening a separate issue and a separate PR. |
Thank you! I've now applied the style check and pushed the change. Do I need to do anything else? |
Interesting. |
OK, I've opened #7147 for the separate issue of the corrupted documentation. |
Type
create_box
in tensor API #7135Motivation and Context
Checklist:
python util/check_style.py --apply
to apply Open3D code styleto my code.
updated accordingly.
results (e.g. screenshots or numbers) here.
Description