Skip to content

Commit

Permalink
Remove the existing file during a SPOC download if it already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
golmschenk committed May 21, 2024
1 parent 8691eca commit 486a5bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ramjet/data_interface/tess_data_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,7 @@ def download_spoc_light_curves_for_tic_ids_chunk(
if manifest_row["Status"] == "COMPLETE":
original_file_path = Path(manifest_row["Local Path"])
updated_file_path = download_directory.joinpath(original_file_path.name)
updated_file_path.unlink(missing_ok=True)
original_file_path.rename(updated_file_path)
light_curve_paths.append(updated_file_path)
else:
Expand Down

0 comments on commit 486a5bb

Please sign in to comment.