From 738b2818775249ec6b8f0b0654715f00f4b73122 Mon Sep 17 00:00:00 2001 From: Guido Riembauer Date: Mon, 23 Dec 2024 09:57:48 +0100 Subject: [PATCH] lint again --- .../m.neural_network.preparedata.worker_export.py | 5 ++++- .../m.neural_network.preparedata.py | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/m.neural_network.preparedata.worker_export/m.neural_network.preparedata.worker_export.py b/m.neural_network.preparedata.worker_export/m.neural_network.preparedata.worker_export.py index 0569468..452bd3b 100644 --- a/m.neural_network.preparedata.worker_export/m.neural_network.preparedata.worker_export.py +++ b/m.neural_network.preparedata.worker_export/m.neural_network.preparedata.worker_export.py @@ -162,7 +162,10 @@ def main() -> None: # image band export image_file = os.path.join(output_dir, f"image_{tile_name}.tif") grass.run_command( - "i.group", group="image_bands", input=image_bands, quiet=True + "i.group", + group="image_bands", + input=image_bands, + quiet=True, ) grass.run_command( "r.out.gdal", diff --git a/m.neural_network.preparedata/m.neural_network.preparedata.py b/m.neural_network.preparedata/m.neural_network.preparedata.py index c292dff..848d198 100644 --- a/m.neural_network.preparedata/m.neural_network.preparedata.py +++ b/m.neural_network.preparedata/m.neural_network.preparedata.py @@ -238,7 +238,7 @@ def main() -> None: west = reg["w"] for col in range(num_tiles_col): grass.message( - _(f"Checking for null cells: " f"row {row} - col {col}") + _(f"Checking for null cells: row {row} - col {col}"), ) row_str = str(row).zfill(num_zeros) col_str = str(col).zfill(num_zeros) @@ -333,7 +333,7 @@ def main() -> None: _( f"Segmenting and/or Exporting: " f"training tile {i + 1} of {len(tr_tiles)}" - ) + ), ) new_mapset = f"tmp_mapset_{ID}_{tile_id}" # update geojson values @@ -371,7 +371,7 @@ def main() -> None: tile_path = os.path.join(output_dir, "apply", tile_name) tile_id = geojson_dict["features"][ap_tile]["properties"]["fid"] grass.message( - _(f"Exporting: " f"apply tile {i + 1} of {len(ap_tiles)}") + _(f"Exporting: apply tile {i + 1} of {len(ap_tiles)}"), ) new_mapset = f"tmp_mapset_{ID}_{tile_id}" # update jeojson values