Skip to content

Commit

Permalink
chaning pdos control labels (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresOrtegaGuerrero authored Nov 28, 2024
1 parent 59589a8 commit a5d670e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
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

0 comments on commit a5d670e

Please sign in to comment.