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

Model depth for Maxwell 2D transient analysis is now a property with getter/setter. #769

Merged
merged 23 commits into from
Jan 25, 2022

Conversation

MaxJPRey
Copy link
Collaborator

Model depth for Maxwell 2D transient analysis is now a property with getter/setter.

Fix #753 .


>>> from pyaedt import Maxwell2d
>>> maxwell_2d = Maxwell2d()
>>> maxwell_2d.model_depth="90 mm"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
>>> maxwell_2d.model_depth="90 mm"
>>> maxwell_2d.model_depth = "90 mm"

Comment on lines 111 to 120

# @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()
Copy link
Collaborator

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

Copy link
Collaborator Author

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.

Copy link
Collaborator

@maxcapodi78 maxcapodi78 left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 1174 to 1175
else:
return None
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems redundant here.

@maxcapodi78 maxcapodi78 merged commit 5c54361 into main Jan 25, 2022
@maxcapodi78 maxcapodi78 deleted the fix/issue_753 branch January 25, 2022 07:40
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.

Method missing: set model depth in Maxwell 2D
3 participants