-
Notifications
You must be signed in to change notification settings - Fork 128
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
base: main
Are you sure you want to change the base?
Conversation
…so methods accept lists without creating error messages in AEDT.
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5416 +/- ##
==========================================
- Coverage 84.39% 84.38% -0.01%
==========================================
Files 140 140
Lines 58645 58655 +10
==========================================
+ Hits 49493 49496 +3
- Misses 9152 9159 +7 |
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.
Greath @DaveTwyman this will solve the bug when users pass a list as input!
Could you add tests to ensure that everything works fine ?
updated_obj = [] | ||
for sel_obj in assignment: | ||
updated_obj.append(self.update_object(sel_obj)) | ||
return updated_obj |
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.
updated_obj = [] | |
for sel_obj in assignment: | |
updated_obj.append(self.update_object(sel_obj)) | |
return updated_obj | |
res = [] | |
for sel_obj in assignment: | |
res.append(self.update_object(sel_obj)) | |
return res |
Just a minor refactor to use a "standard" name for return value.
if isinstance(assignment, list): | ||
updated_obj = [] | ||
for sel_obj in assignment: | ||
updated_obj.append(self.update_object(sel_obj)) | ||
return updated_obj |
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.
if isinstance(assignment, list): | |
updated_obj = [] | |
for sel_obj in assignment: | |
updated_obj.append(self.update_object(sel_obj)) | |
return updated_obj | |
if isinstance(assignment, list): | |
res = [] | |
for sel_obj in assignment: | |
res.append(self.update_object(sel_obj)) | |
return res |
No description provided.