From c32c6f7f35fca6a95eb34348578cd6769205c65a Mon Sep 17 00:00:00 2001 From: bastien-mva <bastien.batardiere@gmail.com> Date: Fri, 9 Jun 2023 14:59:26 +0200 Subject: [PATCH] update | to ** for python < 3.10 --- pyPLNmodels/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyPLNmodels/models.py b/pyPLNmodels/models.py index 83104e22..4175b6f6 100644 --- a/pyPLNmodels/models.py +++ b/pyPLNmodels/models.py @@ -847,7 +847,7 @@ class model(ABC): dict The dictionary representing the model. """ - return self.dict_data | self._dict_parameters + return {**self.dict_data, **self._dict_parameters} @property def _dict_parameters(self): @@ -859,7 +859,7 @@ class model(ABC): dict The dictionary of parameters. """ - return self.model_parameters | self.latent_parameters + return {**self.model_parameters, **self.latent_parameters} @property def coef(self): -- GitLab