Skip to content

Commit

Permalink
No purge
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecThomson committed Aug 10, 2024
1 parent 9b1ad2a commit 1937aef
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions arrakis/process_spice.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from prefect import flow
from prefect.task_runners import BaseTaskRunner
from prefect_dask import DaskTaskRunner
import shutil

from arrakis import (
cleanup,
Expand Down Expand Up @@ -42,11 +41,6 @@ def process_spice(args, host: str, task_runner: BaseTaskRunner) -> None:
"""
outfile = f"{args.field}.pipe.test.fits" if args.outfile is None else args.outfile

cutout_dir = Path(args.datadir) / "cutouts"
if cutout_dir.exists() and not args.skip_cutout:
logger.warning(f"Cutout directory '{cutout_dir}' exists! Purging...")
shutil.rmtree(cutout_dir)

previous_future = None
previous_future = (
cutout.cutout_islands.with_options(
Expand Down

0 comments on commit 1937aef

Please sign in to comment.