Skip to content

Refactored DesignXPloration.py classes to support vaiables customization #1003

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 5 commits into from
Mar 28, 2022

Conversation

maxcapodi78
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Mar 28, 2022

Codecov Report

Merging #1003 (0f9fe91) into main (c8dae12) will increase coverage by 0.02%.
The diff coverage is 85.24%.

@@            Coverage Diff             @@
##             main    #1003      +/-   ##
==========================================
+ Coverage   80.64%   80.67%   +0.02%     
==========================================
  Files         130      130              
  Lines       38535    38575      +40     
==========================================
+ Hits        31078    31119      +41     
+ Misses       7457     7456       -1     

@maxcapodi78 maxcapodi78 requested a review from Alberto-DM March 28, 2022 12:39
Copy link
Contributor

@Alberto-DM Alberto-DM left a comment

Choose a reason for hiding this comment

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

See in line comment

@@ -568,7 +568,7 @@ def test_24_create_curvilinear(self):
def test_25_create_parametrics(self):
self.aedtapp["w1"] = "10mm"
self.aedtapp["w2"] = "2mm"
setup1 = self.aedtapp.parametrics.add({"w1": "LIN 0.1mm 20mm 0.2mm"})
setup1 = self.aedtapp.parametrics.add("w1", 0.1, 20, 0.2, "LinearStep")
assert setup1
assert setup1.add_variation("w2", "0.1mm", 10, 11)
Copy link
Contributor

Choose a reason for hiding this comment

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

I understand the logic, but what I find confusing is having 3 methods to do the same thing. parametrics.add, parametrics.set_variation, optimization.add_variable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks. I've renamed set_variable to add_variation to keep consistency between optimizations object and parametrics object

Copy link
Contributor

@Alberto-DM Alberto-DM 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 6304817 into main Mar 28, 2022
@maxcapodi78 maxcapodi78 deleted the optimetrics_fix branch March 28, 2022 14:27
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.

2 participants