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

FIX: Modified return statement for sweep_around_axis and sweep_along_path so methods accept lists without creating error messages in AEDT. #5416

Merged
merged 13 commits into from
Nov 22, 2024

Conversation

DaveTwyman
Copy link
Contributor

No description provided.

…so methods accept lists without creating error messages in AEDT.
@ansys-reviewer-bot
Copy link
Contributor

Thanks for opening a Pull Request. If you want to perform a review write a comment saying:

@ansys-reviewer-bot review

@DaveTwyman DaveTwyman changed the title Modified return statement for sweep_around_axis and sweep_along_path so methods accept lists without creating error messages in AEDT. Fix: Modified return statement for sweep_around_axis and sweep_along_path so methods accept lists without creating error messages in AEDT. Nov 12, 2024
Copy link

codecov bot commented Nov 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.67%. Comparing base (e5669d9) to head (aee1200).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5416      +/-   ##
==========================================
+ Coverage   84.63%   84.67%   +0.04%     
==========================================
  Files         143      143              
  Lines       60073    60083      +10     
==========================================
+ Hits        50840    50874      +34     
+ Misses       9233     9209      -24     
---- 🚨 Try these New Features:

@DaveTwyman DaveTwyman self-assigned this Nov 12, 2024
@DaveTwyman DaveTwyman changed the title Fix: Modified return statement for sweep_around_axis and sweep_along_path so methods accept lists without creating error messages in AEDT. FIX: Modified return statement for sweep_around_axis and sweep_along_path so methods accept lists without creating error messages in AEDT. Nov 12, 2024
Copy link
Collaborator

@SMoraisAnsys SMoraisAnsys left a comment

Choose a reason for hiding this comment

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

Greath @DaveTwyman this will solve the bug when users pass a list as input!
Could you add tests to ensure that everything works fine ?

src/ansys/aedt/core/modeler/cad/primitives.py Outdated Show resolved Hide resolved
src/ansys/aedt/core/modeler/cad/primitives.py Outdated Show resolved Hide resolved
DaveTwyman and others added 3 commits November 20, 2024 11:29
Added missing unit test for 'sweep_around_axis'.
Improved unit tests 'sweep_along_vector' and 'sweep_along_path' to include sweeping a list of sheets in addition to just sweeping a single sheet.
@DaveTwyman DaveTwyman enabled auto-merge (squash) November 21, 2024 15:29
gmalinve and others added 3 commits November 22, 2024 09:49
Assertions were included in existing unit test. Remove as they are testing methods outside of the scope of the sweep unit test.

Co-authored-by: gmalinve <103059376+gmalinve@users.noreply.github.com>
Copy link
Contributor

@gmalinve gmalinve left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for taking care of this!

Copy link
Collaborator

@SMoraisAnsys SMoraisAnsys left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for this contribution @DaveTwyman

@DaveTwyman DaveTwyman merged commit 91543ea into main Nov 22, 2024
43 checks passed
@DaveTwyman DaveTwyman deleted the 5362-fix-sweep-errors branch November 22, 2024 13:19
@DaveTwyman
Copy link
Contributor Author

DaveTwyman commented Nov 22, 2024 via email

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.

Error Messages when 'sweep_along_path' and 'sweep_around_axis' are passed more than one assignment
3 participants