Skip to content

Commit 7764639

Browse files
committed
format
1 parent beb267c commit 7764639

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

packages/common/src/bag3d/common/resources/executables.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def execute(
115115
local_path: Path = None,
116116
silent=False,
117117
cwd: str = None,
118-
output_logging: str = "STREAM"
118+
output_logging: str = "STREAM",
119119
) -> Tuple[int, str]:
120120
"""Execute a command in a docker container if an image is available, otherwise
121121
execute with the local executable.

packages/common/src/bag3d/common/utils/geodata.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ def ogrinfo(
7272
for feature_type in feature_types:
7373
kwargs = {"xsd": xsd, "dataset": dataset, "feature_type": feature_type}
7474
return_code, output = gdal.execute(
75-
"ogrinfo", command=cmd, kwargs=kwargs, local_path=extract_path,
76-
output_logging="BUFFER"
75+
"ogrinfo",
76+
command=cmd,
77+
kwargs=kwargs,
78+
local_path=extract_path,
79+
output_logging="BUFFER",
7780
)
7881
if return_code == 0:
7982
layername, layerinfo = parse_ogrinfo(output, feature_type)
@@ -234,8 +237,11 @@ def ogr2postgres(
234237
"dataset": dataset,
235238
}
236239
return_code, output = gdal.execute(
237-
"ogr2ogr", command=cmd, kwargs=kwargs, local_path=extract_path,
238-
output_logging="BUFFER"
240+
"ogr2ogr",
241+
command=cmd,
242+
kwargs=kwargs,
243+
local_path=extract_path,
244+
output_logging="BUFFER",
239245
)
240246
if return_code == 0:
241247
return postgrestable_metadata(context, new_table)
@@ -267,7 +273,7 @@ def pdal_info(
267273
command=" ".join(cmd_list),
268274
local_path=file_path,
269275
silent=(not verbose),
270-
output_logging="BUFFER"
276+
output_logging="BUFFER",
271277
)
272278
except Exception as e:
273279
if "Global encoding WKT flag" in str(e):

0 commit comments

Comments
 (0)