From 671b81a42f3ed9cf1f5118d243eade1a12c99f40 Mon Sep 17 00:00:00 2001 From: alaskowski <alaskowski@ethz.ch> Date: Mon, 17 Jul 2023 17:14:41 +0200 Subject: [PATCH] SSDM-13689: Fixed issue with updating properties for linked datasets --- .../src/python/pybis/openbis_object.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/api-openbis-python3-pybis/src/python/pybis/openbis_object.py b/api-openbis-python3-pybis/src/python/pybis/openbis_object.py index d351da74857..d19d90b8663 100644 --- a/api-openbis-python3-pybis/src/python/pybis/openbis_object.py +++ b/api-openbis-python3-pybis/src/python/pybis/openbis_object.py @@ -71,9 +71,10 @@ class OpenBisObject: # put the properties in the self.p namespace (without checking them) if "properties" in data: for key, value in data["properties"].items(): - data_type = self.p._property_names[key.lower()]['dataType'] - if data_type in ("ARRAY_INTEGER", "ARRAY_REAL", "ARRAY_STRING", "ARRAY_TIMESTAMP"): - value = self.formatter.to_array(data_type, value) + if self.p.type: + data_type = self.p._property_names[key.lower()]['dataType'] + if data_type in ("ARRAY_INTEGER", "ARRAY_REAL", "ARRAY_STRING", "ARRAY_TIMESTAMP"): + value = self.formatter.to_array(data_type, value) self.p.__dict__[key.lower()] = value # object is already saved to openBIS, so it is not new anymore -- GitLab