diff --git a/glotaran/optimization/optimization_group.py b/glotaran/optimization/optimization_group.py index d9f515a84..763092ae5 100644 --- a/glotaran/optimization/optimization_group.py +++ b/glotaran/optimization/optimization_group.py @@ -131,7 +131,11 @@ def create_result_data(self) -> dict[str, xr.Dataset]: dict[str, xr.Dataset] The datasets with the results. """ - result_datasets = {label: data.copy() for label, data in self._data.items()} + result_datasets = { + label: data.copy() + for label, data in self._data.items() + if label in self._dataset_group.dataset_models.keys() + } global_matrices, matrices = self._matrix_provider.get_result() clps, residuals = self._estimation_provider.get_result()