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

bugfix in Tile().update_latest_ql mk dir

parent 28f9d9dd
No related branches found
No related tags found
No related merge requests found
Pipeline #27 canceled
......@@ -203,6 +203,24 @@ class Library:
"""
for tile in set([val for sublist in [k for k in [getattr(self,t) for t in self.__dict__]] for val in sublist]):
Tile(tile).init_md()
####################### A FAIRE
def compute_l2a(self,
tile_list: list = [],
):
toto = 12
####################### A FAIRE
def compute_cloudmasks(self,
tile_list: list = [],
):
toto = 15
####################### A FAIRE
def compute_indices(self,
tile_list: list = [],
):
toto = 20
......
......@@ -890,6 +890,7 @@ class Tile:
l2a = L2aProduct(p)
outfullpath = l2a.path.parent / "QL" / (l2a.tile + '_' + p[0:4] + Tile._get_date(p).strftime("%Y%m%d") + '_QL_latest.jpg')
outfullpath.parent.mkdir(parents=True, exist_ok=True)
old_ql = list((l2a.path.parent / "QL").glob('*_QL_latest.jpg*'))
liste=[a for a in old_ql if str(outfullpath) not in str(a)]
for f in liste:
......
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