Skip to content
Snippets Groups Projects
Commit f26254c3 authored by pascal.mouquet_ird.fr's avatar pascal.mouquet_ird.fr
Browse files

working on download for jobs

parent de9e8279
No related branches found
No related tags found
No related merge requests found
......@@ -387,6 +387,7 @@ class Job:
if not self.tasks.empty:
# Telechargement
# todo
# keep list of downloaded l1c products
......@@ -557,6 +558,19 @@ class Job:
# Remove L2A
# todo
# Nettoyage
if clean_after:
logger.info("Cleaning Tiles")
clean_list = []
for index, row in self.tasks.iterrows():
clean_list.append(row.tile)
lib = Library()
pb_before = lib.clean(
clean_list, remove=True, remove_indice_tif=True
)
# lib.clean(clean_list, remove=False)
else:
logger.info("No task defined for this job, doing nothing")
......
......@@ -736,9 +736,6 @@ class Tile:
start = datetime_to_str(self.l1c.last.date + timedelta(days=1), date_format = 'ymd')
dag.search(start = start, end = end)
##### to do
## choix entre sequential / multithreading / multiprocessing default multithreading
if download:
## sequential
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment