Skip to content

Commit 5b2509b

Browse files
committed
Fix pylint f-strings too long
1 parent cca0dc7 commit 5b2509b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

geospatial_tools/raster.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@ def _clip_process(
131131
time.sleep(delay)
132132
else:
133133
logger.warning(
134-
f"There was an error writing the file :[Polygon ID: {polygon_id}\nPolygon: {polygon}\nError message: {str(e)}]"
134+
f"There was an error writing the file :[Polygon ID: {polygon_id}"
135+
f"\nPolygon: {polygon}\nError message: {str(e)}]"
135136
)
136137
return None
137138

@@ -318,7 +319,8 @@ def merge_raster_bands(
318319
# Iterate through each band of the raster file
319320
for source_image_band_index in range(1, num_of_bands + 1):
320321
logger.info(
321-
f"Writing asset sub item band {source_image_band_index} to merged index band {merged_image_index}"
322+
f"Writing asset sub item band {source_image_band_index} "
323+
f"to merged index band {merged_image_index}"
322324
)
323325
# Write band to output merged_asset_image
324326
merged_asset_image.write_band(merged_image_index, source_image.read(source_image_band_index))

0 commit comments

Comments
 (0)