From 5871a4230db80a04d389f46a386e626a819659b0 Mon Sep 17 00:00:00 2001 From: JureZmzrlikar Date: Thu, 23 Nov 2023 09:07:51 +0100 Subject: [PATCH] Fix the edge case with deepcopy threadlock error --- src/resdk/resources/sample.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resdk/resources/sample.py b/src/resdk/resources/sample.py index fcaaccaa..af37dc33 100644 --- a/src/resdk/resources/sample.py +++ b/src/resdk/resources/sample.py @@ -281,7 +281,7 @@ def set_annotation( return None field = self.resolwe.annotation_field.from_path(full_path) annotation_value = self.resolwe.annotation_value.create( - sample=self, field=field, value=value + sample=self.id, field=field.id, value=value ) return annotation_value