diff --git a/src/aiidalab_qe/plugins/xas/resources.py b/src/aiidalab_qe/plugins/xas/resources.py index a42ea0026..dd9206294 100644 --- a/src/aiidalab_qe/plugins/xas/resources.py +++ b/src/aiidalab_qe/plugins/xas/resources.py @@ -10,7 +10,7 @@ class XasResourceSettingsModel(PluginResourceSettingsModel): """Model for the XAS plugin.""" - title = "XAS Structure" + title = "XAS" identifier = "xas" def __init__(self, **kwargs): diff --git a/src/aiidalab_qe/plugins/xps/__init__.py b/src/aiidalab_qe/plugins/xps/__init__.py index 79c579633..af519424e 100644 --- a/src/aiidalab_qe/plugins/xps/__init__.py +++ b/src/aiidalab_qe/plugins/xps/__init__.py @@ -1,6 +1,7 @@ from aiidalab_qe.common.panel import PluginOutline from .model import XpsConfigurationSettingsModel +from .resources import XpsResourceSettingsModel, XpsResourceSettingsPanel from .result import XpsResultsModel, XpsResultsPanel from .setting import XpsConfigurationSettingsPanel from .structure_examples import structure_examples @@ -18,6 +19,10 @@ class XpsPluginOutline(PluginOutline): "panel": XpsConfigurationSettingsPanel, "model": XpsConfigurationSettingsModel, }, + "resources": { + "panel": XpsResourceSettingsPanel, + "model": XpsResourceSettingsModel, + }, "result": { "panel": XpsResultsPanel, "model": XpsResultsModel, diff --git a/src/aiidalab_qe/plugins/xps/resources.py b/src/aiidalab_qe/plugins/xps/resources.py new file mode 100644 index 000000000..3c17e3692 --- /dev/null +++ b/src/aiidalab_qe/plugins/xps/resources.py @@ -0,0 +1,32 @@ +"""Resource panel for XPS plugin.""" + +from aiidalab_qe.common.code.model import PwCodeModel +from aiidalab_qe.common.panel import ( + PluginResourceSettingsModel, + PluginResourceSettingsPanel, +) + + +class XpsResourceSettingsModel(PluginResourceSettingsModel): + """Model for the XPS plugin.""" + + title = "XPS" + identifier = "xps" + + def __init__(self, **kwargs): + super().__init__(**kwargs) + self.add_models( + { + "pw": PwCodeModel( + name="pw.x", + description="pw.x", + default_calc_job_plugin="quantumespresso.pw", + ), + } + ) + + +class XpsResourceSettingsPanel( + PluginResourceSettingsPanel[XpsResourceSettingsModel], +): + """Panel for configuring the XPS plugin."""