-
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
Standardize setting-like widgets with tests #451
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #451 +/- ##
==========================================
+ Coverage 55.82% 56.68% +0.86%
==========================================
Files 27 28 +1
Lines 2370 2415 +45
==========================================
+ Hits 1323 1369 +46
+ Misses 1047 1046 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
968e09e
to
5330735
Compare
5330735
to
8a15ffd
Compare
|
8299fcb
to
1a05a09
Compare
8448610
to
6fe5ff3
Compare
I continue on changing For the |
But are we keeping kpoints_distance , right? For the systems we work in empa it is extremely useful to have control over these parameters |
Yes, |
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.
@unkcpz thanks for the PR. LGTM!
Since this is an intermediate PR, please go ahead and merge. Our final version would be,
- only one
protocol
in each panel (e.gadvanced setting
), thisprotocol
will be linked to theprotocol
of the basic setting, and trigger the update of the panel. - one override for each section in the
advanced setting
, instead of every parameter. @AndresOrtegaGuerrero feel free to discuss this if you have other options. - in the
advanced setting
, if the parameter is only one value (e.g. kpoint_distance), we just use the basic widget from ipywidget. If the parameters belong to one catalog, (e.g. smearing, and degauss are related to occupation), we create a widget to bundle them together. and expose the outputvalue
as a dict.
Thanks for the green light! I'll have a follow-up PR to bundle things to advanced settings and at the end keep only one override for all such 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.
Looks good to me!
I had a discussion with @superstar54 yesterday on how to standardize all such "settings" widgets to make them more uniformed and easy to test.
This PR is an attempt. Let's try to make these two setting widgets as perfect as possible and we can then apply it to other settings.
For the override, I plan to have another PR to remove it for sub-widgets and only keep one for the pw parameters override.