Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Dobson committed Mar 1, 2024
1 parent 2f9b169 commit 92970e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion swmmanywhere/preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def next_directory(keyword: str, directory: Path) -> int:
Returns:
int: Next directory number.
"""
existing_dirs = [int(d.name.split("_")[-1]) for d in directory.glob(f"{keyword}_*"))]
existing_dirs = [int(d.name.split("_")[-1])
for d in directory.glob(f"{keyword}_*")]
return 1 if not existing_dirs else max(existing_dirs) + 1

def check_bboxes(bbox: tuple[float, float, float, float],
Expand Down

0 comments on commit 92970e8

Please sign in to comment.