Skip to content

Commit

Permalink
546 tiling (#547)
Browse files Browse the repository at this point in the history
* change error logging

---------

Co-authored-by: Turgeon-Pelchat <mathieu.turgeon-pelchat@nrcan-rncan.gc.ca>
  • Loading branch information
mpelchat04 and Turgeon-Pelchat committed Oct 6, 2023
1 parent f0e29ab commit 09dca64
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tiling_segmentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,8 @@ def main(cfg: DictConfig) -> None:
for index, aoi in tqdm(enumerate(tiler.src_aoi_list), position=0, leave=False):
if aoi.overlap_label_rto_raster == 0.0:
logging.error(
f"Features in label file {aoi.label} do not intersect with bounds of raster file "
f"{aoi.raster.name}, thus this AOI will be skipped.")
f"Features in label file {aoi.label.name} do not intersect with bounds of raster file "
f"{aoi.raster_name.name}, thus this AOI will be skipped.")
continue
try:
tiling_dir = exp_dir / aoi.split.strip() / aoi.aoi_id.strip()
Expand Down

0 comments on commit 09dca64

Please sign in to comment.