Skip to content

Commit 5c083be

Browse files
committed
reformat lint compliant
1 parent 9168154 commit 5c083be

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

ost/helpers/vector.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
try:
1010
from pyproj.crs.coordinate_operation import AzimuthalEquidistantConversion
1111
except ImportError:
12-
from pyproj.crs.coordinate_operation import AzumuthalEquidistantConversion as AzimuthalEquidistantConversion
12+
from pyproj.crs.coordinate_operation import (
13+
AzumuthalEquidistantConversion as AzimuthalEquidistantConversion
14+
)
1315

1416
import geopandas as gpd
1517
import logging

ost/s1/grd_to_ard.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)