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

improve Primitives3D #3525

Merged
merged 14 commits into from
Oct 11, 2023
Merged

improve Primitives3D #3525

merged 14 commits into from
Oct 11, 2023

Conversation

tizianrot
Copy link
Contributor

fixed docstrings for create_cylinder
fixed input list for create_box and create_polyhedron

fixed docstring in create_cone
fixed docstring in create_cone
@tizianrot tizianrot self-assigned this Sep 7, 2023
@tizianrot tizianrot linked an issue Sep 7, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Sep 7, 2023

Codecov Report

Merging #3525 (2659027) into main (dcc57a0) will increase coverage by 0.00%.
The diff coverage is 89.09%.

@@           Coverage Diff           @@
##             main    #3525   +/-   ##
=======================================
  Coverage   81.04%   81.05%           
=======================================
  Files         179      179           
  Lines       61870    61908   +38     
=======================================
+ Hits        50143    50177   +34     
- Misses      11727    11731    +4     

@Samuelopez-ansys
Copy link
Member

@tizianrot @gmalinve Please could you review the suggested modifications and push them? First update the branch please

@gmalinve
Copy link
Contributor

@tizianrot there are still some things to fix in the already commited changes.
I see that there's still something to fix in other methods such as create_cylinder, create_polyhedron (you are asserting only the center position but there's also the start position), create_cone, create_bondwire, create_rectangle etc.

pyaedt/modeler/cad/Primitives3D.py Outdated Show resolved Hide resolved
pyaedt/modeler/cad/Primitives3D.py Outdated Show resolved Hide resolved
pyaedt/modeler/cad/Primitives3D.py Outdated Show resolved Hide resolved
pyaedt/modeler/cad/Primitives3D.py Outdated Show resolved Hide resolved
added assert commands to check input parameters for 3D primitives
@tizianrot tizianrot marked this pull request as ready for review September 28, 2023 13:38
@Samuelopez-ansys
Copy link
Member

@tizianrot Please could you implement the suggestions and push again? Thanks

Copy link
Member

@PipKat PipKat left a comment

Choose a reason for hiding this comment

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

Thanks so much for rewording these message strings so that they follow our style guidelines! Great work!

@gmalinve
Copy link
Contributor

Hi @PipKat, thanks for reviewing!

I just pushed the latest commit in order to apply your advice to all messages in that class.
Could you please double check that everything is fine now?

Thanks!

Giulia

Copy link
Member

@PipKat PipKat left a comment

Choose a reason for hiding this comment

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

@gmalinve I leave marking a PR as approved to someone with technical expertise. I only review the docstrings and prose--which looks fine. You'll need a technical team member to approve the PR.

@gmalinve
Copy link
Contributor

@PipKat yes, I meant if you could review the doc since I changed other docstrings.
Thanks!

Copy link
Member

@Samuelopez-ansys Samuelopez-ansys left a comment

Choose a reason for hiding this comment

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

Great work

@Samuelopez-ansys Samuelopez-ansys merged commit 56a532d into main Oct 11, 2023
12 checks passed
@Samuelopez-ansys Samuelopez-ansys deleted the training_1 branch October 11, 2023 06:38
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.

Improve methods to create objects in Primitives3D
4 participants