-
Notifications
You must be signed in to change notification settings - Fork 14
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
Advanced override setting unification #457
Conversation
unkcpz
commented
Sep 4, 2023
- Remove override of sub-widgets of advanced setting
- Proper white box tests are added for widgets
- Move kpoints setting and totalchange setting into the advanced setting.
There is a follow-up PR required to improve the magnatization setting widget and add a unit test for it. |
bd12b5c
to
29a1a37
Compare
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 for the PR. I added a few suggestions.
settings = { | ||
"kpoints_distance": self.kpoints_distance.value, | ||
"total_charge": self.total_charge.value, | ||
"degauss": self.smearing.degauss_value, | ||
"smearing": self.smearing.smearing_value, | ||
} |
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.
magnetization
belongs to advanced settings
, but its value is not used here.
def test_kpoints_settings(): | ||
"""Test KpointSettings widget.""" | ||
from aiidalab_qe.app.configuration.advanced import KpointSettings | ||
def test_advanced_kpoints_settings(): |
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.
For the kpoints_distance
and total_charge
, because they are basic ipywidget, I think it doesn't need to test them separately. You already tested them when testing the advanced setting as a whole.