From 145fdf2db00534e00bf246bb790b6a9cd2af54ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Commins?= <jeremy.commins@onf.fr>
Date: Tue, 5 Jul 2022 15:34:02 -0300
Subject: [PATCH] Remove AWS support from automatization module

---
 sen2chain/automatization.py | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/sen2chain/automatization.py b/sen2chain/automatization.py
index af6bd36..b1814ca 100644
--- a/sen2chain/automatization.py
+++ b/sen2chain/automatization.py
@@ -40,7 +40,7 @@ class Automatization:
     def __init__(self) -> None:
         self._df = None
         self._tiles_to_update = dict()
-        self._products_list = {"hubs": {}, "aws": {}}
+        self._products_list = {}
 
         if not self._csv_path.exists():
             logger.info("Creating tiles_to_watch file")
@@ -190,8 +190,7 @@ class Automatization:
             )
             request.from_tiles([tile])
 
-            self._products_list["hubs"].update(request.products_list["hubs"])
-            self._products_list["aws"].update(request.products_list["aws"])
+            self._products_list.update(request.products_list)
 
     @staticmethod
     def _get_ignored_tiles(self) -> np.ndarray:
@@ -235,7 +234,6 @@ class Automatization:
             prods = DownloadAndProcess(
                 identifiers=self._products_list,
                 hubs_limit=hubs_limit,
-                aws_limit=2,
                 process_products=process_products,
                 max_processes=3,
                 indices_list=indices_list,
@@ -273,7 +271,7 @@ class Automatization:
 
     @property
     def products(self) -> Dict[str, dict]:
-        """Returns the products to download on AWS and on hubs."""
+        """Returns the products to download."""
         return self._products_list
 
 
-- 
GitLab