Skip to content

Refactor optimetrics #974

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

Merged
merged 15 commits into from
Mar 23, 2022
Merged

Refactor optimetrics #974

merged 15 commits into from
Mar 23, 2022

Conversation

maxcapodi78
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Mar 22, 2022

Codecov Report

Merging #974 (5aa1298) into main (fa4d455) will decrease coverage by 0.11%.
The diff coverage is 79.70%.

@@            Coverage Diff             @@
##             main     #974      +/-   ##
==========================================
- Coverage   80.75%   80.63%   -0.12%     
==========================================
  Files         128      130       +2     
  Lines       38170    38432     +262     
==========================================
+ Hits        30825    30991     +166     
- Misses       7345     7441      +96     

@Samuelopez-ansys
Copy link
Member

LGTM.

I have checked all the new methods and now is more aligned to the other pyAEDT classes. Nice improvement.

I have detected one issue, if we specify a different Setup than the default, this tab is not updated:
image

This is a problem because the parametric / optimization won't work. Maybe you know where to update this value in the code
@maxcapodi78
I have found the issue changing the unittest:

assert setup1.add_calculation(calculation="dB(S(1,1))", ranges={"Freq": "2.5GHz"}, solution="MySetupForSweep : LastAdaptive")

@@ -8,7 +8,7 @@
###############################################################################
# Import the EDB Layout Object
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This example imports the EDB layout object and initializes it on version 2021.2.
# This example imports the EDB layout object and initializes it on version 2022R2.
Copy link
Collaborator

Choose a reason for hiding this comment

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

@maxcapodi78 Bellow we are mentioning 2022.1 in edb() initializer.

Suggested change
# This example imports the EDB layout object and initializes it on version 2022R2.
# This example imports the EDB layout object and initializes it on version 2022R1.

@@ -35,11 +35,11 @@
# Launch EDB
# ~~~~~~~~~~
# This example launches the :class:`pyaedt.Edb` class.
# This example uses EDB 2021.2 and uses SI units.
# This example uses EDB 2022R2 and uses SI units.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# This example uses EDB 2022R2 and uses SI units.
# This example uses EDB 2022R1 and uses SI units.

@@ -8,7 +8,7 @@
###############################################################################
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# This example imports the `Hfss3dlayout` object and initializes it on version
# 2021.2.
# 2022R2.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# 2022R2.
# 2022R1.

@@ -38,9 +38,9 @@
# Launch EDB
# ~~~~~~~~~~
# This example launches the :class:`pyaedt.Edb` class.
# This example uses EDB 2021.2 and uses SI units.
# This example uses EDB 2022R2 and uses SI units.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# This example uses EDB 2022R2 and uses SI units.
# This example uses EDB 2022R1 and uses SI units.

@@ -31,9 +31,9 @@
# Launch EDB
# ~~~~~~~~~~
# This example launches the :class:`pyaedt.Edb` class.
# This example uses EDB 2021.2 and uses SI units.
# This example uses EDB 2022R2 and uses SI units.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# This example uses EDB 2022R2 and uses SI units.
# This example uses EDB 2022R1 and uses SI units.

@@ -21,10 +21,10 @@
###############################################################################
# Launch AEDT in Graphical Mode
# -----------------------------
# This example launches AEDT 2021.2 in graphical mode.
# This example launches AEDT 2022R2 in graphical mode.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# This example launches AEDT 2022R2 in graphical mode.
# This example launches AEDT 2022R1 in graphical mode.

Returns
-------
object
Aedt Object if Any.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Aedt Object if Any.
Aedt Object if any.

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

@maxcapodi78 maxcapodi78 merged commit d83e6d0 into main Mar 23, 2022
@maxcapodi78 maxcapodi78 deleted the refactor_optimetrics branch March 23, 2022 13:54
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.

3 participants