From 9412168f29112ca3ec0f1c41bb3b0fe54ed0beb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Besson?= Date: Thu, 11 Jan 2024 17:09:13 +0000 Subject: [PATCH] Fix flake8 issue raised following the Rocky Linux 9 image upgrade --- src/omero_metadata/populate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/omero_metadata/populate.py b/src/omero_metadata/populate.py index 8ac0664a..0a1f9ce8 100644 --- a/src/omero_metadata/populate.py +++ b/src/omero_metadata/populate.py @@ -673,7 +673,8 @@ def _load(self): self.plates_by_id = dict() images_by_id = dict() self.images_by_id[self.target_object.id.val] = images_by_id - for plate in (l.child for l in self.target_object.copyPlateLinks()): + plates = [link.child for link in self.target_object.copyPlateLinks()] + for plate in plates: parameters = omero.sys.ParametersI() parameters.addId(plate.id.val) plate = query_service.findByQuery((