-
Notifications
You must be signed in to change notification settings - Fork 162
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
Conversation
Codecov Report
@@ 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 |
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.
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) |
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.
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.
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.
Thanks. I've renamed set_variable to add_variation to keep consistency between optimizations object and parametrics object
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.
LGTM
No description provided.