-
Notifications
You must be signed in to change notification settings - Fork 129
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
Model depth for Maxwell 2D transient analysis is now a property with getter/setter. #769
Conversation
…erties. Those properties are not updated when the project has been saved.
pyaedt/maxwell.py
Outdated
|
||
>>> from pyaedt import Maxwell2d | ||
>>> maxwell_2d = Maxwell2d() | ||
>>> maxwell_2d.model_depth="90 mm" |
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.
>>> maxwell_2d.model_depth="90 mm" | |
>>> maxwell_2d.model_depth = "90 mm" |
_unittest/test_27_Maxwell2D.py
Outdated
|
||
# @pyaedt_unittest_check_desktop_error | ||
# def test_17_enable_inductance_computation(self): | ||
# # Set a new value for model depth | ||
# self.aedtapp.model_depth = "90 mm" | ||
# assert self.aedtapp.model_depth == 0.09 | ||
# self.aedtapp.model_depth = "1.3" | ||
# assert self.aedtapp.model_depth == 1.3 | ||
# # Generate design data | ||
# assert self.aedtapp.generate_design_data() |
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 not needed we can remove this comment
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.
Done. I will reinstate the test when the project properties issue is fixed.
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
else: | ||
return None |
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.
This seems redundant here.
Model depth for Maxwell 2D transient analysis is now a property with getter/setter.
Fix #753 .