From 4b2f8623ededb30aa302d76ea239478ca45202eb Mon Sep 17 00:00:00 2001 From: HaleySchuhl Date: Tue, 7 May 2024 15:17:37 -0500 Subject: [PATCH] deepsource iterate dictionary --- plantcv/annotate/classes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plantcv/annotate/classes.py b/plantcv/annotate/classes.py index 10f000b..d8bae84 100644 --- a/plantcv/annotate/classes.py +++ b/plantcv/annotate/classes.py @@ -83,8 +83,8 @@ def save_counts(self, label=None): """Save collected coordinates to Outputs.observations""" if label is None: label = params.sample_label - for x in self.count.keys(): - value = self.count[x] + for key in self.count: + value = self.count[key] outputs.add_observation(sample=label, variable="object_count", trait='count of category', method='count', scale='count', datatype=int,