Skip to content

Commit

Permalink
phonon tab results
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresOrtegaGuerrero committed Dec 2, 2024
1 parent a2b8d08 commit aa70434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/aiidalab_qe_vibroscopy/app/result/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def render(self):

self.children = [self.tabs]
self.rendered = True
self.tabs.selected_index = 0

def _on_tab_change(self, change):
if (tab_index := change["new"]) is None:
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe_vibroscopy/app/widgets/phononwidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _init_view(self):
self.bands_pdos.update_layout(
xaxis=dict(title="q-points"),
yaxis=dict(title="Phonon Bands (THz)", range=[y_min - 0.1, y_max + 0.1]),
yaxis2=dict(range=[0, x_max + 0.1]),
xaxis2=dict(range=[0, x_max + 0.1]),
)
self.children = (self.bands_pdos, *self.children)
self._model.update_thermo_plot(self.thermal_plot)

0 comments on commit aa70434

Please sign in to comment.