@@ -102,13 +102,13 @@ def grd_to_ard(filelist, config_file):
102102 for file in filelist :
103103
104104 # unzip for faster import?
105- unpack = None
106- if Path (file ).suffix == ".zip" :
107- with zipfile .ZipFile (file , "r" ) as zip_ref :
108- zip_ref .extractall (temp )
105+ # unpack = None
106+ # if Path(file).suffix == ".zip":
107+ # with zipfile.ZipFile(file, "r") as zip_ref:
108+ # zip_ref.extractall(temp)
109109
110- file = temp / f"{ file .stem } .SAFE"
111- unpack = True
110+ # file = temp / f"{file.stem}.SAFE"
111+ # unpack = True
112112
113113 # create namespace for temporary imported product
114114 grd_import = temp / f"{ file .stem } _imported"
@@ -127,9 +127,9 @@ def grd_to_ard(filelist, config_file):
127127
128128 config_dict ["subset" ] = subset
129129
130- if unpack :
131- h .remove_folder_content (file )
132- file .rmdir ()
130+ # if unpack:
131+ # h.remove_folder_content(file)
132+ # file.rmdir()
133133
134134 # create list of scenes for full acquisition in
135135 # preparation of slice assembly
@@ -184,13 +184,13 @@ def grd_to_ard(filelist, config_file):
184184 file = filelist [0 ]
185185
186186 # unzip for faster import
187- unpack = None
188- if Path (file ).suffix == ".zip" :
189- with zipfile .ZipFile (file , "r" ) as zip_ref :
190- zip_ref .extractall (temp )
187+ # unpack = None
188+ # if Path(file).suffix == ".zip":
189+ # with zipfile.ZipFile(file, "r") as zip_ref:
190+ # zip_ref.extractall(temp)
191191
192- file = temp / f"{ file .stem } .SAFE"
193- unpack = True
192+ # file = temp / f"{file.stem}.SAFE"
193+ # unpack = True
194194
195195 # create namespace for temporary imported product
196196 grd_import = temp / f"{ file_id } _imported"
@@ -205,9 +205,9 @@ def grd_to_ard(filelist, config_file):
205205 logger .info (error )
206206 return filelist , None , None , error
207207
208- if unpack :
209- h .remove_folder_content (file )
210- file .rmdir ()
208+ # if unpack:
209+ # h.remove_folder_content(file)
210+ # file.rmdir()
211211
212212 # set input for next step
213213 infile = grd_import .with_suffix (".dim" )
0 commit comments