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

Volume projection bounds #63

Merged
merged 3 commits into from
Sep 12, 2023
Merged

Volume projection bounds #63

merged 3 commits into from
Sep 12, 2023

Conversation

anilyil
Copy link
Contributor

@anilyil anilyil commented Sep 8, 2023

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

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (non-backwards-compatible fix or feature)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Documentation update
  • Maintenance update
  • Other (please describe)

Testing

Checklist

  • I have run flake8 and black to make sure the Python code adheres to PEP-8 and is consistently formatted
  • I have formatted the Fortran code with fprettify or C/C++ code with clang-format as applicable
  • I have run unit and regression tests which pass locally with my changes
  • I have added new tests that prove my fix is effective or that my feature works
  • I have added necessary documentation

@anilyil anilyil requested review from hajdik and lamkina September 8, 2023 22:06
@anilyil anilyil requested a review from a team as a code owner September 8, 2023 22:06
@codecov
Copy link

codecov bot commented Sep 8, 2023

Codecov Report

Merging #63 (daed9fd) into main (17a3867) will increase coverage by 0.37%.
The diff coverage is 100.00%.

@@            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              
Files Changed Coverage Δ
pyspline/pyVolume.py 42.38% <100.00%> (+1.58%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@anilyil anilyil mentioned this pull request Sep 9, 2023
13 tasks
marcomangano
marcomangano previously approved these changes Sep 9, 2023
Copy link
Contributor

@marcomangano marcomangano left a 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

@@ -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.
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Copy link
Contributor

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 👀

Copy link
Contributor Author

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!

@lamkina lamkina merged commit 4da3f9c into mdolab:main Sep 12, 2023
@anilyil anilyil deleted the vol_bounds branch September 12, 2023 00:42
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.

3 participants