From 8721a480e083b60b2dd60500700e2b559d7d6956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Eide?= Date: Fri, 4 Oct 2024 09:37:08 +0200 Subject: [PATCH] Optional --- src/ert/config/ert_config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ert/config/ert_config.py b/src/ert/config/ert_config.py index 858bd31ba82..16280fd36d4 100644 --- a/src/ert/config/ert_config.py +++ b/src/ert/config/ert_config.py @@ -132,7 +132,9 @@ def __post_init__(self) -> None: if self.user_config_file else os.getcwd() ) - self.observations: Dict[str, xr.Dataset] = self.enkf_obs.datasets + self.observations: Dict[str, xr.Dataset] = ( + self.enkf_obs.datasets if self.enkf_obs else {} + ) @staticmethod def with_plugins(