diff --git a/aiida_cp2k/workchains/base.py b/aiida_cp2k/workchains/base.py index 1f26b78c..3ed3caee 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)