From 0192acdb2e296021714d112d8ea13e3926b91aa4 Mon Sep 17 00:00:00 2001 From: Carlo Antonio Pignedoli Date: Fri, 15 Mar 2024 20:40:28 +0000 Subject: [PATCH] bug fix due to aiida-core version --- aiida_cp2k/workchains/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiida_cp2k/workchains/base.py b/aiida_cp2k/workchains/base.py index 1f26b78..3ed3cae 100644 --- a/aiida_cp2k/workchains/base.py +++ b/aiida_cp2k/workchains/base.py @@ -65,7 +65,7 @@ def results(self): trajectories = self._collect_all_trajetories() if trajectories: self.report("Work chain completed successfully, collecting all trajectories") - if self.ctx.inputs.parameters.get("GLOBAL", {}).get("RUN_TYPE") == "GEO_OPT": + if self.ctx.inputs.parameters.get_dict().get("GLOBAL", {}).get("RUN_TYPE") == "GEO_OPT": output_trajectory = utils.merge_trajectory_data_non_unique(*trajectories) else: output_trajectory = utils.merge_trajectory_data_unique(*trajectories)