forked from aiidalab/aiidalab-qe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
43 lines (35 loc) · 1.14 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from importlib import resources as importlib_resources
import yaml
from aiidalab_qe.common.panel import PluginOutline
from aiidalab_qe.plugins import xas as xas_folder
from .model import XasConfigurationSettingsModel
from .resources import XasResourceSettingsModel, XasResourceSettingsPanel
from .result import XasResultsModel, XasResultsPanel
from .setting import XasConfigurationSettingsPanel
from .structure_examples import structure_examples
from .workchain import workchain_and_builder
PSEUDO_TOC = yaml.safe_load(
importlib_resources.read_text(
xas_folder,
"pseudo_toc.yaml",
)
)
class XasPluginOutline(PluginOutline):
title = "X-ray absorption spectroscopy (XAS)"
xas = {
"outline": XasPluginOutline,
"structure_examples": structure_examples,
"configuration": {
"panel": XasConfigurationSettingsPanel,
"model": XasConfigurationSettingsModel,
},
"resources": {
"panel": XasResourceSettingsPanel,
"model": XasResourceSettingsModel,
},
"result": {
"panel": XasResultsPanel,
"model": XasResultsModel,
},
"workchain": workchain_and_builder,
}