Skip to content
Snippets Groups Projects
Commit e77cdfaf authored by Jeremy Commins's avatar Jeremy Commins
Browse files

Add hubs_limit parameter to Automatization.run().

parent 4c26e051
No related branches found
No related tags found
No related merge requests found
......@@ -187,7 +187,8 @@ class Automatization:
process_products: bool = False,
indices_list: List[str] = None,
nodata_clouds: bool = True,
quicklook: bool = True
quicklook: bool = True,
hubs_limit: Dict[str, int] = None
) -> None:
"""
Runs automatization.
......@@ -205,12 +206,14 @@ class Automatization:
tiles = []
if indices_list is None:
indices_list = []
if hubs_limit is None:
hubs_limit = {"peps": 3, "scihub": 2}
self._get_tiles_to_update(tiles_list=tiles)
self._get_products_list()
if any(self._products_list.values()):
prods = DownloadAndProcess(identifiers=self._products_list,
hubs_limit={"peps": 3, "scihub": 2},
hubs_limit=hubs_limit,
aws_limit=2,
process_products=process_products,
max_processes=3,
......
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