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

Add CylinderSource class #4890

Merged
merged 11 commits into from
Sep 23, 2023
Merged

Add CylinderSource class #4890

merged 11 commits into from
Sep 23, 2023

Conversation

tkoyama010
Copy link
Member

@tkoyama010 tkoyama010 commented Sep 16, 2023

Overview

  • Follow-up PR of Add ConeSource class #4860 . Add CylinderSource class.
  • Move translate function from geometric_objects.py to geometric_sources.py .

Details

  • None

Verified

This commit was signed with the committer’s verified signature.
rosstimson-causaly Ross Timson
@github-actions github-actions bot added documentation Anything related to the documentation/website enhancement Changes that enhance the library labels Sep 16, 2023
@codecov
Copy link

codecov bot commented Sep 16, 2023

Codecov Report

Merging #4890 (c2a13e9) into main (bc912e9) will increase coverage by 0.00%.
Report is 1 commits behind head on main.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #4890   +/-   ##
=======================================
  Coverage   95.98%   95.99%           
=======================================
  Files         131      131           
  Lines       21560    21607   +47     
=======================================
+ Hits        20694    20741   +47     
  Misses        866      866           

@tkoyama010 tkoyama010 marked this pull request as draft September 16, 2023 09:25
@tkoyama010 tkoyama010 marked this pull request as ready for review September 18, 2023 18:06
@tkoyama010
Copy link
Member Author

LGTM

Copy link
Contributor

@pyvista-bot pyvista-bot left a comment

Choose a reason for hiding this comment

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

✅ Approving this PR because tkoyama010 said so in here 😬

@tkoyama010 tkoyama010 merged commit 5d342b6 into main Sep 23, 2023
@tkoyama010 tkoyama010 deleted the feat/add-cylinder-source-class branch September 23, 2023 23:48
"""
self.Update()
output = wrap(self.GetOutput())
output.rotate_z(-90, inplace=True)
Copy link
Contributor

@MatthewFlamm MatthewFlamm Sep 25, 2023

Choose a reason for hiding this comment

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

Sorry I wasn't able to review this timely. I have not tested this, but due to the rotation and translation in this method, could we get different result in these two cases for cyl_source = pv.CylinderSource(), cyl_source.output.plot() and pl.add_mesh(cyl_source). I think the latter will not have this rotation and translation?

Copy link
Member Author

Choose a reason for hiding this comment

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

We are always happy to review, no matter when. Please review whenever you like.
And very good point. This is a bug and I have created #4956 .

tkoyama010 added a commit that referenced this pull request Oct 10, 2023
* Add `CylinderSource` class

* Update geometric_sources.py

* Update test_geometric_sources.py

* Update test_geometric_sources.py

* Update geometric_sources.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Anything related to the documentation/website enhancement Changes that enhance the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants