Skip to content

Commit

Permalink
Putting back the results panel in the init.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikibonacci committed Dec 3, 2024
1 parent d43f35f commit 2332b16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/aiidalab_qe_vibroscopy/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
VibroResourceSettingsModel,
VibroResourcesSettingsPanel,
)
from aiidalab_qe_vibroscopy.app.result.result import VibroResultsPanel
from aiidalab_qe_vibroscopy.app.result.model import VibroResultsModel

from aiidalab_qe_vibroscopy.app.workchain import workchain_and_builder

Expand All @@ -24,5 +26,9 @@ class VibroPluginOutline(PluginOutline):
"panel": VibroResourcesSettingsPanel,
"model": VibroResourceSettingsModel,
},
"result": {
"panel": VibroResultsPanel,
"model": VibroResultsModel,
},
"workchain": workchain_and_builder,
}
8 changes: 4 additions & 4 deletions src/aiidalab_qe_vibroscopy/app/result/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,17 @@ def render(self):

tab_data.append(("Raman/IR spectra", irraman_widget))

needs_dielectri_tab = self._model.needs_dielectric_tab()

if needs_dielectri_tab:
needs_dielectric_tab = self._model.needs_dielectric_tab()
if needs_dielectric_tab:
dielectric_model = DielectricModel()
dielectric_widget = DielectricWidget(
model=dielectric_model,
node=vibro_node,
)
tab_data.append(("Dielectric Properties", dielectric_widget))

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

0 comments on commit 2332b16

Please sign in to comment.