-
Notifications
You must be signed in to change notification settings - Fork 134
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
FIX: Loading default settings value #5531
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5531 +/- ##
==========================================
+ Coverage 84.75% 84.85% +0.09%
==========================================
Files 144 144
Lines 60189 60624 +435
==========================================
+ Hits 51011 51440 +429
- Misses 9178 9184 +6 |
@Samuelopez-ansys @Alberto-DM Would it make sense to add I'm asking that because if a user tries to come up with his own default settings file, he might start from the one we provide as an example. However, this file does not contain ANS_NODEPCHECK. The reason for that is that this environment variable seems to be leveraged in Linux environment but not in Windows. Therefore, users might end up with a configuration were ANS_NODEPCHECK is not set :/ |
If the env variable ANS_NODEPCHECK is ignored in Windows, we can keep it always set to 1. |
The problem is that I don't know the impact of |
@SMoraisAnsys I will check internally if it has any impact in Windows. |
@SMoraisAnsys Confirmed. ANS_NODEPCHECK has only impact in Linux |
@Samuelopez-ansys @gmalinve While working on improving code coverage, I discovered that |
Description
This changes should allow one to load the default pyaedt_settings.yaml file.
Previously, if a user tried to use the file as it is and only modified one setting, e.g.
enable_screen_logs
, then loading the YAML file failed because some fields are casted / tested on the fly.Also, while working on this and testing, I found that we were not correctly hanling the update of the AEDT environment variables stored in
Settings
. This PR also fixes it.Close #5536
Pinging @kruglovIFX for visibility. Note that you'll have to wait for this to be merged and a new release to published in order to leverage this fix.