diff --git a/src/aiidalab_qe_vibroscopy/app/result/__init__.py b/src/aiidalab_qe_vibroscopy/app/result/__init__.py new file mode 100644 index 0000000..6dba6bb --- /dev/null +++ b/src/aiidalab_qe_vibroscopy/app/result/__init__.py @@ -0,0 +1,7 @@ +from aiidalab_qe_vibroscopy.app.result.model import VibroResultsModel +from aiidalab_qe_vibroscopy.app.result.result import VibroResultsPanel + +__all__ = [ + "VibroResultsModel", + "VibroResultsPanel", +] diff --git a/src/aiidalab_qe_vibroscopy/app/result/model.py b/src/aiidalab_qe_vibroscopy/app/result/model.py new file mode 100644 index 0000000..23c2a29 --- /dev/null +++ b/src/aiidalab_qe_vibroscopy/app/result/model.py @@ -0,0 +1,13 @@ +from aiidalab_qe.common.panel import ResultsModel +import traitlets as tl + + +class VibroResultsModel(ResultsModel): + identifier = "vibronic" + + _this_process_label = "VibroWorkChain" + + tab_titles = tl.List([]) + + def get_vibro_node(self): + return self._get_child_outputs() diff --git a/src/aiidalab_qe_vibroscopy/app/result/result.py b/src/aiidalab_qe_vibroscopy/app/result/result.py new file mode 100644 index 0000000..d709802 --- /dev/null +++ b/src/aiidalab_qe_vibroscopy/app/result/result.py @@ -0,0 +1,14 @@ +"""Vibronic results view widgets""" + +from aiidalab_qe_vibroscopy.app.result.model import VibroResultsModel +from aiidalab_qe.common.panel import ResultsPanel + + +class VibroResultsPanel(ResultsPanel[VibroResultsModel]): + title = "Vibronic" + identifier = "vibronic" + workchain_labels = ["vibro"] + + def render(self): + if self.rendered: + return diff --git a/src/aiidalab_qe_vibroscopy/app/widgets/phononwidget.py b/src/aiidalab_qe_vibroscopy/app/widgets/phononwidget.py new file mode 100644 index 0000000..e69de29