Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bug on band_kpoints_distance for periodicity x and xy #547

Merged
merged 6 commits into from
Nov 9, 2023
8 changes: 5 additions & 3 deletions src/aiidalab_qe/app/result/summary_viewer.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import ipywidgets as ipw
from aiida_quantumespresso.workflows.pw.bands import PwBandsWorkChain

FUNCTIONAL_LINK_MAP = {
"PBE": "https://journals.aps.org/prl/abstract/10.1103/PhysRevLett.77.3865",
Expand Down Expand Up @@ -111,9 +112,10 @@ def generate_report_parameters(qeapp_wc):
)
# hard code bands and pdos
if "bands" in qeapp_wc.inputs:
report[
"bands_kpoints_distance"
] = qeapp_wc.inputs.bands.bands_kpoints_distance.value
report["bands_kpoints_distance"] = PwBandsWorkChain.get_protocol_inputs(
report["protocol"]
)["bands_kpoints_distance"]

Comment on lines +115 to +118
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is not correct, this will make the report distance only rely on the protocol.
The if..else is still needed as your previous change.
If the user sets the bands_kpoints_distance, it needs to be updated in the report. Am I missing something?

Copy link
Member Author

@AndresOrtegaGuerrero AndresOrtegaGuerrero Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So far the user doesnt have the option to modify bands_kpoints_distance from the bands plugin (qe app)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good! Then it is all fine for me.

if "pdos" in qeapp_wc.inputs:
report[
"nscf_kpoints_distance"
Expand Down
Loading