allenai / rslearn

A tool for developing remote sensing datasets and models.
Apache License 2.0
5 stars 0 forks source link

Rtree index should not be created on error #20

Closed favyen2 closed 5 months ago

favyen2 commented 5 months ago

Currently if rtree index creation fails (e.g. for Aws NAIP or GCP Sentinel-2), the second time running prepare it will reuse the partially created index file.

Instead it should create the index with a different filename and move it upon success.