From 9b1d133cd22db554ddadd0d9b37ed07db9ca468a Mon Sep 17 00:00:00 2001 From: Andreas Pedersen Date: Mon, 11 Nov 2024 15:38:41 +0100 Subject: [PATCH] load fix when no experiments --- src/easyreflectometry/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/easyreflectometry/project.py b/src/easyreflectometry/project.py index a1165a01..255b4612 100644 --- a/src/easyreflectometry/project.py +++ b/src/easyreflectometry/project.py @@ -391,7 +391,7 @@ def from_dict(self, project_dict: dict): if 'experiments' in keys: self._experiments = self._from_dict_extract_experiments(project_dict) else: - self._experiments = None + self._experiments = {} def _from_dict_extract_experiments(self, project_dict: dict) -> Dict[int, DataSet1D]: experiments = {}