Skip to content

Commit

Permalink
Handle aiidalab#787
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Oct 23, 2024
1 parent 05f15c2 commit a72e271
Show file tree
Hide file tree
Showing 16 changed files with 617 additions and 279 deletions.
2 changes: 1 addition & 1 deletion docs/source/development/architecture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The dictionary has the following structure:
"pseudo_family": "SSSP/1.3/PBEsol/efficiency",
"kpoints_distance": 0.5,
},
"bands": {"kpath_2d": "hexagonal"},
"bands": {},
"pdos": {...},
"plugin_1": {...},
"plugin_2": {...},
Expand Down
2 changes: 1 addition & 1 deletion docs/source/development/plugin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ The `parameters` passed to the `get_builder` function has the following structur
"pseudo_family": "SSSP/1.3/PBEsol/efficiency",
"kpoints_distance": 0.5,
},
"bands": {"kpath_2d": "hexagonal"},
"bands": {},
"pdos": {...},
"eos": {...},
"plugin_1": {...},
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ install_requires =
aiida-pseudo~=1.4
filelock~=3.8
importlib-resources~=5.2
aiida-wannier90-workflows==2.3.0
python_requires = >=3.9

[options.packages.find]
Expand Down Expand Up @@ -60,6 +61,9 @@ aiidalab_qe.properties =
electronic_structure = aiidalab_qe.plugins.electronic_structure:electronic_structure
xas = aiidalab_qe.plugins.xas:xas

aiida.workflows =
aiidalab_qe.bands_workchain = aiidalab_qe.plugins.bands.bands_workchain:BandsWorkChain

[aiidalab]
title = Quantum ESPRESSO
description = Perform Quantum ESPRESSO calculations
Expand Down
2 changes: 1 addition & 1 deletion src/aiidalab_qe/app/configuration/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ def render(self):
self.spin_type,
]
),
*self.property_children,
ipw.HTML("""
<div style="padding-top: 0px; padding-bottom: 0px">
<h4>Protocol</h4>
</div>
"""),
*self.property_children,
ipw.HTML("Select the protocol:", layout=ipw.Layout(flex="1 1 auto")),
self.protocol,
ipw.HTML("""
Expand Down
2 changes: 2 additions & 0 deletions src/aiidalab_qe/app/parameters/qeapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ codes:
code: dos-7.2@localhost
projwfc:
code: projwfc-7.2@localhost
projwfc_bands:
code: projwfc-7.2@localhost
pw:
code: pw-7.2@localhost
pp:
Expand Down
7 changes: 7 additions & 0 deletions src/aiidalab_qe/plugins/bands/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# from aiidalab_qe.bands.result import Result
from aiidalab_qe.app.submission.code.model import CodeModel
from aiidalab_qe.common.panel import PanelOutline

from .model import BandsModel
Expand All @@ -19,6 +20,12 @@ class BandsOutline(PanelOutline):
bands = {
"outline": BandsOutline,
"model": BandsModel,
"code": {
"projwfc_bands": CodeModel(
description="projwfc.x",
default_calc_job_plugin="quantumespresso.projwfc",
),
},
"setting": Setting,
"result": Result,
"workchain": workchain_and_builder,
Expand Down
Loading

0 comments on commit a72e271

Please sign in to comment.