Skip to content

Commit

Permalink
make ruff hapy
Browse files Browse the repository at this point in the history
  • Loading branch information
burakekim committed Jan 3, 2025
1 parent 068c731 commit 1b18387
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions torchgeo/datasets/eurocrops.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 1b18387

Please sign in to comment.