astronomy-commons / hipscat-import

HiPSCat import - generate HiPSCat-partitioned catalogs
https://hipscat-import.readthedocs.io
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

split_pixels throws an error on empty files #305

Closed delucchi-cmu closed 2 months ago

delucchi-cmu commented 2 months ago

Bug report

If some input files are present but empty, the mapping stage succeeds, but the splitting stage can fail when freeing memory that wasn't allocated.

Only free (call del) inside the loop to read over files.

Before submitting Please check the following: