-
Notifications
You must be signed in to change notification settings - Fork 27
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
Volume projection bounds #63
Conversation
Codecov Report
@@ Coverage Diff @@
## main #63 +/- ##
==========================================
+ Coverage 52.53% 52.91% +0.37%
==========================================
Files 5 5
Lines 1616 1629 +13
==========================================
+ Hits 849 862 +13
Misses 767 767
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Took a minute to figure out what was going on - LGTM, pretty neat. See the only comment on the updated docstring
pyspline/pyVolume.py
Outdated
@@ -830,6 +830,11 @@ def projectPoint(self, x0, nIter=25, eps=1e-10, **kwargs): | |||
Maximum number of Newton iterations to perform | |||
eps : float | |||
Tolerance for the Newton iteration | |||
volBounds : list of lists | |||
Optional input to prescribe bounds to the parametric coordinates during the projection. | |||
The value is a list, that should contain 3 lists with 2 float entries each. |
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.
No comma, replace "should" with "must" as this does not work with anything less than the full list, right?
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.
Done.
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.
Looks like you committed the wrong file 👀
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 for the heads up!
Purpose
This PR adds optional bounds to the parametric coordinates used during volume projections. Same additions can be done for the surface and curve projections as well. @lamkina and @hajdik can follow the template here.
Expected time until merged
No rush
Type of change
Testing
Checklist
flake8
andblack
to make sure the Python code adheres to PEP-8 and is consistently formattedfprettify
or C/C++ code withclang-format
as applicable