Skip to content

Commit

Permalink
adding ProjwfcBandWorkchain (#787)
Browse files Browse the repository at this point in the history
* adding ProjwfcBandWorkchain for Fat bands Calculations
  • Loading branch information
AndresOrtegaGuerrero authored Oct 4, 2024
1 parent fc8d0a5 commit 2b3963a
Show file tree
Hide file tree
Showing 15 changed files with 597 additions and 262 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
9 changes: 0 additions & 9 deletions src/aiidalab_qe/app/configuration/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,6 @@ class WorkChainSettings(Panel):
"""<div style="padding-top: 0px; padding-bottom: 0px">
<h4>Properties</h4></div>"""
)
properties_help = ipw.HTML(
"""<div style="line-height: 140%; padding-top: 10px; padding-bottom: 0px">
The band structure workflow will
automatically detect the default path in reciprocal space using the
<a href="https://www.materialscloud.org/work/tools/seekpath" target="_blank">
SeeK-path tool</a>.</div>"""
)

protocol_title = ipw.HTML(
"""<div style="padding-top: 0px; padding-bottom: 0px">
<h4>Protocol</h4></div>"""
Expand Down Expand Up @@ -116,7 +108,6 @@ def update_reminder_info(change, name=name):
if name in setting_entries:
self.properties[name].run.observe(update_reminder_info, "value")

self.property_children.append(self.properties_help)
self.children = [
self.structure_title,
self.structure_help,
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
8 changes: 8 additions & 0 deletions src/aiidalab_qe/plugins/bands/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# from aiidalab_qe.bands.result import Result
from aiidalab_qe.common.panel import OutlinePanel
from aiidalab_qe.common.widgets import QEAppComputationalResourcesWidget

from .result import Result
from .setting import Setting
Expand All @@ -15,8 +16,15 @@ class BandsOutline(OutlinePanel):
"""


projwfc_code = QEAppComputationalResourcesWidget(
description="projwfc.x",
default_calc_job_plugin="quantumespresso.projwfc",
)


bands = {
"outline": BandsOutline,
"code": {"projwfc_bands": projwfc_code},
"setting": Setting,
"result": Result,
"workchain": workchain_and_builder,
Expand Down
Loading

0 comments on commit 2b3963a

Please sign in to comment.