Skip to content

Commit

Permalink
invalidate raw data
Browse files Browse the repository at this point in the history
  • Loading branch information
malmans2 committed Feb 9, 2024
1 parent 272edb3 commit ca98d14
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions c3s_eqc_automatic_quality_control/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,13 @@ def download_and_transform(
for request in ensure_list(requests):
request_list.extend(split_request(request, chunks, split_all))

if invalidate_cache and not use_cache:
# Delete raw data
for request in request_list:
cacholote.delete(
_cached_retrieve, collection_id=collection_id, request=request
)

if n_jobs != 1:
# Download all data in parallel
joblib.Parallel(n_jobs=n_jobs)(
Expand Down

0 comments on commit ca98d14

Please sign in to comment.