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

bigfix in Job for L2A removing

parent f3a3b30d
No related branches found
No related tags found
No related merge requests found
Pipeline #1251 passed
......@@ -510,9 +510,9 @@ class Job:
for index, row in tasks.iterrows():
if bool(setuptools.distutils.util.strtobool(str(row.l1c))):
t = Tile(row.tile)
logger.info("Adding tile: {}".format(t.name))
logger.info("Checking tile: {}".format(t.name))
if self.logs:
f.write("Adding tile: {}\n".format(t.name))
f.write("Checking tile: {}\n".format(t.name))
f.flush()
tile_download_list = t.get_l1c(
......@@ -534,8 +534,12 @@ class Job:
logger.info("{} product(s) downloaded: {}\n\n".format(len(downloaded_products), downloaded_products))
if self.logs:
f.write("{} product(s) downloaded: \n".format(len(downloaded_products)))
for pro in downloaded_products:
f.write("{}\n\n".format(pro))
if downloaded_products:
for pro in downloaded_products:
f.write("{}\n\n".format(pro))
else:
f.write("\n".format(cld))
f.flush()
# Traitement des L1C en L2A
......@@ -705,7 +709,7 @@ class Job:
)
if self.logs:
f.write(
"{}: adding - {}: {} l2a products".format(
"{}: adding - {}: {} l2a products\n".format(
row.tile, i, len(l2a_to_process)
)
)
......@@ -722,7 +726,8 @@ class Job:
)
)
for ind in indices_l2a_process_list:
f.write("{}\n\n".format(ind))
f.write("{}\n".format(ind))
f.write("\n")
f.flush()
indices_res = False
......@@ -734,7 +739,7 @@ class Job:
# Remove L2A
l2a_remove_list = list(
set(
cld_l2a_process_list + [ind[0] for ind in indices_l2a_process_list]
[cld[0] for cld in cld_l2a_process_list] + [ind[0] for ind in indices_l2a_process_list]
)
)
for index, row in tasks.iterrows():
......
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