From 1b1838712a2b2d3c42a95dcb90545fbe5f61c869 Mon Sep 17 00:00:00 2001 From: Burak Date: Fri, 3 Jan 2025 20:50:48 +0100 Subject: [PATCH] make ruff hapy --- torchgeo/datasets/eurocrops.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/torchgeo/datasets/eurocrops.py b/torchgeo/datasets/eurocrops.py index 06774c621b..bac2b03552 100644 --- a/torchgeo/datasets/eurocrops.py +++ b/torchgeo/datasets/eurocrops.py @@ -205,9 +205,11 @@ def get_label(self, feature: 'fiona.model.Feature') -> int: # (Parent code is computed by replacing rightmost non-0 character with 0.) hcat_code = feature['properties'][self.label_name] if hcat_code is None: - print(f"Feature does not contain the label '{self.label_name}'. Skip rendering.") + print( + f"Feature does not contain the label '{self.label_name}'. Skip rendering." + ) return 0 - + while True: if hcat_code in self.class_map: return self.class_map[hcat_code]