Commit 8c59081f authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Improved method detection in phonon processing.

parent ccee2e1a
Pipeline #76840 passed with stages
in 23 minutes and 38 seconds
......@@ -434,6 +434,8 @@ class Calc(Proc):
# Get encyclopedia method information directly from the referenced calculation.
ref_enc_method = ref_archive.section_metadata.encyclopedia.method
if ref_enc_method is None or len(ref_enc_method) == 0:
raise ValueError("No method information available in referenced calculation.")
backend.entry_archive.section_metadata.encyclopedia.method = ref_enc_method
# Overwrite old entry with new data. The metadata is updated with
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment