Skip to content

Commit

Permalink
Putting the model and widget in the results panel
Browse files Browse the repository at this point in the history
  • Loading branch information
mikibonacci committed Dec 3, 2024
1 parent 7f2e0c0 commit d43f35f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/aiidalab_qe_vibroscopy/app/result/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
from aiidalab_qe_vibroscopy.app.widgets.phononwidget import PhononWidget
from aiidalab_qe_vibroscopy.app.widgets.phononmodel import PhononModel

from aiidalab_qe_vibroscopy.app.widgets.euphonicwidget import (
EuphonicSuperWidget as EuphonicWidget,
)
from aiidalab_qe_vibroscopy.app.widgets.euphonicmodel import (
EuphonicBaseResultsModel as EuphonicModel,
)


class VibroResultsPanel(ResultsPanel[VibroResultsModel]):
title = "Vibronic"
Expand Down Expand Up @@ -69,8 +76,8 @@ def render(self):
tab_data.append(("Dielectric Properties", dielectric_widget))

if self._model.needs_euphonic_tab():
euphonic_model = DielectricModel()
euphonic_widget = DielectricWidget(
euphonic_model = EuphonicModel()
euphonic_widget = EuphonicWidget(
model=euphonic_model,
node=vibro_node,
)
Expand Down

0 comments on commit d43f35f

Please sign in to comment.