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

FEAT: Circuit current probe #5352

Merged
merged 9 commits into from
Nov 12, 2024
Merged

FEAT: Circuit current probe #5352

merged 9 commits into from
Nov 12, 2024

Conversation

boyang2022
Copy link
Contributor

No description provided.

@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

@github-actions github-actions bot added the maintenance Package and maintenance related label Oct 28, 2024
@boyang2022 boyang2022 changed the title Circuit current probe FEAT: circuit current probe Oct 28, 2024
@boyang2022 boyang2022 added enhancement New features or code improvements and removed maintenance Package and maintenance related labels Oct 28, 2024
@boyang2022 boyang2022 changed the title FEAT: circuit current probe FEAT: Circuit current probe Oct 28, 2024
Copy link

codecov bot commented Oct 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.40%. Comparing base (33278b9) to head (77af806).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5352      +/-   ##
==========================================
+ Coverage   84.38%   84.40%   +0.01%     
==========================================
  Files         140      140              
  Lines       58635    58645      +10     
==========================================
+ Hits        49479    49499      +20     
+ Misses       9156     9146      -10     

@Samuelopez-ansys
Copy link
Member

Hi @boyang2022 , you missed to test when you do not define the location. Thank you for the pull request!

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.

Hey @boyang2022 , thanks for the contribution !

This changes seem to be copy pasted from create_voltage_probe (which isn't a problem!). Could you refactor that to have a single method with an additional argument to distinguish between voltage and current and which would contain the logic, e.g. __create_probe ?

That way, both create_voltage_probe and create_current_probe could call that method behind the scene and that would help us to maintain both at the same time.

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.

LGTM

@github-actions github-actions bot added the maintenance Package and maintenance related label Nov 12, 2024
@Samuelopez-ansys Samuelopez-ansys enabled auto-merge (squash) November 12, 2024 08:21
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.

Could you please revert the parameter name as an optional input ? This would introduce a breaking change for users and from the changes you are doing, I don't think it is required.
@Samuelopez-ansys If you think that changing name as a required value is a good thing, feel free to discard my review.

SMoraisAnsys
SMoraisAnsys previously approved these changes 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.

LGTM

@Samuelopez-ansys Samuelopez-ansys merged commit 48f4e87 into main Nov 12, 2024
42 checks passed
@Samuelopez-ansys Samuelopez-ansys deleted the circuit_current_probe branch November 12, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New features or code improvements maintenance Package and maintenance related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants