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

GUI: Allow settings to have a "virtual value" #33

Open
pfebrer opened this issue Sep 22, 2020 · 0 comments
Open

GUI: Allow settings to have a "virtual value" #33

pfebrer opened this issue Sep 22, 2020 · 0 comments

Comments

@pfebrer
Copy link
Owner

pfebrer commented Sep 22, 2020

A virtual value would be the equivalent value of the setting to get the actual state of the plot.

This is best understood with an example:

BandsPlot has two settings that choose which bands to display: Erange and bands_range. If none of them are provided, the bands to display are inferred from the fermi level. However, to help the user update these settings (give them a notion of what are the ranges), we set Erange and bands_range to the corresponding values. It would be great that these two settings are not actually set, but just contain a virtual value that is displayed to the user.

Otherwise, one needs to set Erange back to None in order for an update in bands_range to take effect.

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

No branches or pull requests

1 participant