astronomy-commons / hipscat-import

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

If not resuming, remove intermediate dir. #244

Closed delucchi-cmu closed 6 months ago

delucchi-cmu commented 6 months ago

Change Description

Closes #58. Closes #216 .

Solution Description

If the user specifies resume=False, then remove the intermediate directory instead of throwing an error. If we are resuming from prior state, give a warning (and catch this warning in testing, as it's a good indication that we've picked up some prior state and we're using it).

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.74%. Comparing base (c0b3546) to head (6362618). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #244 +/- ## ========================================== - Coverage 99.75% 99.74% -0.01% ========================================== Files 24 24 Lines 1203 1198 -5 ========================================== - Hits 1200 1195 -5 Misses 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.