-
Notifications
You must be signed in to change notification settings - Fork 159
REFACTOR: Configure layout #6287
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
base: main
Are you sure you want to change the base?
Conversation
hui-zhou-a
commented
Jun 20, 2025
- Add comments in toml
- Add test for batch mode
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6287 +/- ##
==========================================
- Coverage 85.28% 85.28% -0.01%
==========================================
Files 173 173
Lines 65358 65331 -27
==========================================
- Hits 55742 55718 -24
+ Misses 9616 9613 -3 🚀 New features to boost your workflow:
|
ExtensionDataLoad.fpath_config = Path(config_file) | ||
ExtensionDataLoad.working_directory = Path(working_directory) |
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.
@hui-zhou-a Why are you working with ExtensionDataLoad
in such a way instead of creating an instance and leveraging that instance ?
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.
@SMoraisAnsys class and instance work in the same way when only one instance is needed, which is the case. I found using class is easier.
version = "2025.1" # Only applicable in batch mode | ||
layout_file = "D:/_pycharm_project/example-data/pyaedt/edb/ANSYS_SVP_V1_1.aedb" # Source layout. Available formats are aedt and aedb |
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.
To help with user's reading, shouldn't we add the comments above the assignment ? For example
# Only applicable in batch mode
version = "2025.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.
Good suggestion.
Co-authored-by: Sébastien Morais <[email protected]>