Skip to content

Commit

Permalink
fix parameter retrieval in method _update_process_label (#720)
Browse files Browse the repository at this point in the history
  • Loading branch information
superstar54 authored May 3, 2024
1 parent ba09f0d commit 794c031
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/aiidalab_qe/app/submission/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,9 @@ def _update_process_label(self) -> dict:
if not self.input_structure:
return ""
formula = self.input_structure.get_formula()
properties = [
p for p in self.input_parameters["workchain"]["properties"] if p != "relax"
]
relax_type = self.input_parameters["workchain"].get("relax_type")
workchain_data = self.input_parameters.get("workchain", {"properties": []})
properties = [p for p in workchain_data["properties"] if p != "relax"]
relax_type = workchain_data.get("relax_type", "none")
if relax_type != "none":
relax_info = "structure is relaxed"
else:
Expand Down

0 comments on commit 794c031

Please sign in to comment.