NRCan / geo-deep-learning

Deep learning applied to georeferenced datasets
https://geo-deep-learning.readthedocs.io/en/latest/
MIT License
150 stars 49 forks source link

"[BUG]: aoi.raster called before assignment in tilling_segmentation.py, on error logging." #546

Closed mpelchat04 closed 10 months ago

mpelchat04 commented 11 months ago

Describe the bug aoi.raster called before assignment in tilling_segmentation.py, on error logging.

At tiling, when aoi.overlap_label_rto_raster == 0.0: here
the logging error points to aoi.raster.name but since the aoi image is not yet opened, it's set to none.

To Reproduce Steps to reproduce the behavior:

  1. Have image and gpkg that don't overlap.
  2. run tiling
  3. See error

Expected behavior Since we only want the name, we can refer to the path of the image rather than the image obj itself.