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

Chaning pdos control labels #949

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/aiidalab_qe/common/bands_pdos/bandpdoswidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ def render(self):
return

self.dos_atoms_group = ipw.Dropdown(
description="Group by:",
description="Atom grouping:",
style={"description_width": "initial"},
layout=ipw.Layout(width="350px"),
)
ipw.dlink(
(self._model, "dos_atoms_group_options"),
Expand All @@ -74,8 +75,9 @@ def render(self):
)

self.dos_plot_group = ipw.Dropdown(
description="Plot contributions:",
description="Orbital grouping:",
style={"description_width": "initial"},
layout=ipw.Layout(width="350px"),
)
ipw.dlink(
(self._model, "dos_plot_group_options"),
Expand All @@ -94,6 +96,7 @@ def render(self):
placeholder="e.g. 1..5 8 10",
description="Select atoms:",
style={"description_width": "initial"},
layout=ipw.Layout(width="350px"),
)
ipw.link(
(self._model, "selected_atoms"),
Expand Down
10 changes: 5 additions & 5 deletions src/aiidalab_qe/common/bands_pdos/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,17 @@ class BandsPdosModel(Model):
dos_atoms_group_options = tl.List(
trait=tl.List(tl.Unicode()),
default_value=[
("Kinds", "kinds"),
("Atomic position", "atoms"),
("Group by element (atomic species)", "kinds"),
("No grouping (each site separately)", "atoms"),
],
)
dos_atoms_group = tl.Unicode("kinds")
dos_plot_group_options = tl.List(
trait=tl.List(tl.Unicode()),
default_value=[
("Total", "total"),
("Orbital", "orbital"),
("Angular momentum", "angular_momentum"),
("Group all orbitals per atom", "total"),
("Group by angular momentum ", "angular_momentum"),
("No grouping (each orbital separately)", "orbital"),
],
)
dos_plot_group = tl.Unicode("total")
Expand Down
Loading