Skip to content

Commit

Permalink
Correct bug where non-limited spoc light curve download errors
Browse files Browse the repository at this point in the history
  • Loading branch information
golmschenk committed Aug 1, 2024
1 parent 6cd1112 commit d64fb83
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ramjet/data_interface/tess_data_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,8 +606,9 @@ def download_spoc_light_curves_for_tic_ids(
tic_id_list_chunk, download_directory, sectors=sectors, limit=chunk_limit
)
paths.extend(paths_chunk)
if len(paths) >= limit:
break
if limit is not None:
if len(paths) >= limit:
break
logger.info(f"{len(paths)} downloaded...")
logger.info(f"Finished downloading {len(paths)} light curves.")
return paths
Expand Down

0 comments on commit d64fb83

Please sign in to comment.