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

fixing bugs in the vibroworkchain #101

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/aiidalab_qe_vibroscopy/workflows/vibroworkchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def get_builder_from_protocol(

# MBO: I do not understand why I have to do this, but it works
builder.phonon = builder_phonon
builder.phonon.symmetry = overrides["symmetry"]
builder.phonon.symmetry = orm.Float(overrides["symmetry"])

# Adding the bands and pdos inputs.
if structure.pbc != (True, True, True):
Expand Down Expand Up @@ -732,7 +732,10 @@ def vibrate(self):
def should_run_phonopy(self):
# Final phonopy is needed for modes 1 and 3;
# namely, we compute bands, pdos and thermo.
return "phonopy_bands_dict" in self.inputs
return (
"phonopy_bands_dict" in self.inputs
and self.ctx[self.ctx.key].is_finished_ok
)

def run_phonopy(self):
"""Run three `PhonopyCalculation` to get (after the calculations of force constants) bands, pdos, thermodynamic quantities."""
Expand Down
Loading