From 7b96f25afe4d3852109768e0dd20e939fd7d3571 Mon Sep 17 00:00:00 2001 From: mrsmrynk Date: Thu, 21 Dec 2023 10:10:17 +0100 Subject: [PATCH] refactor --- src/utils/coordinator.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/coordinator.py b/src/utils/coordinator.py index 217ad5d..07c4cff 100644 --- a/src/utils/coordinator.py +++ b/src/utils/coordinator.py @@ -109,11 +109,11 @@ def extract_coordinates_processed(path_tiles_processed_dir): pattern = re.compile(r'^(-?\d+)_(-?\d+)$') - for path_tiles_processed_subdir in path_tiles_processed_dir.iterdir(): - if not path_tiles_processed_subdir.is_dir(): + for path_tile_processed_dir in path_tiles_processed_dir.iterdir(): + if not path_tile_processed_dir.is_dir(): continue - match = pattern.search(path_tiles_processed_subdir.name) + match = pattern.search(path_tile_processed_dir.name) if match: x_min = int(match.group(1))