-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] Resolve missing XPS resource (#1071)
* Add xps resource * Remove `structure` from XAS title
- Loading branch information
1 parent
07593e3
commit 75a792d
Showing
3 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.""" |