Skip to content

Commit e5afe7c

Browse files
committed
code formatting improvement
1 parent 45f4792 commit e5afe7c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

python/rsgislib/segmentation/skimgseg.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,8 @@ def perform_felsenszwalb_segmentation(
114114
if not ((gdalDS.RasterCount == 1) or (gdalDS.RasterCount == 3)):
115115
gdalDS = None
116116
raise rsgislib.RSGISPyException(
117-
"Input image should have either a single band or three (RGB). Consider performing PCA to reduce."
117+
"Input image should have either a single band or three "
118+
"(RGB). Consider performing PCA to reduce."
118119
)
119120

120121
pxlValsArr = []
@@ -237,7 +238,8 @@ def perform_quickshift_segmentation(
237238
if not (gdalDS.RasterCount == 3):
238239
gdalDS = None
239240
raise rsgislib.RSGISPyException(
240-
"Input image should have three bands (RGB). Consider performing PCA to reduce."
241+
"Input image should have three bands (RGB). "
242+
"Consider performing PCA to reduce."
241243
)
242244

243245
pxlValsArr = []
@@ -409,7 +411,8 @@ def perform_slic_segmentation(
409411
if not ((gdalDS.RasterCount == 1) or (gdalDS.RasterCount == 3)):
410412
gdalDS = None
411413
raise rsgislib.RSGISPyException(
412-
"Input image should have either a single band or three (RGB). Consider performing PCA to reduce."
414+
"Input image should have either a single band or three (RGB). "
415+
"Consider performing PCA to reduce."
413416
)
414417

415418
pxlValsArr = []
@@ -568,7 +571,8 @@ def perform_watershed_segmentation(
568571
if not ((gdalDS.RasterCount == 1) or (gdalDS.RasterCount == 3)):
569572
gdalDS = None
570573
raise rsgislib.RSGISPyException(
571-
"Input image should have either a single band or three (RGB). Consider performing PCA to reduce."
574+
"Input image should have either a single band or three (RGB). "
575+
"Consider performing PCA to reduce."
572576
)
573577

574578
pxlValsArr = []
@@ -730,7 +734,8 @@ def perform_random_walker_segmentation(
730734
if not ((gdalDS.RasterCount == 1) or (gdalDS.RasterCount == 3)):
731735
gdalDS = None
732736
raise rsgislib.RSGISPyException(
733-
"Input image should have either a single band or three (RGB). Consider performing PCA to reduce."
737+
"Input image should have either a single band or three (RGB). "
738+
"Consider performing PCA to reduce."
734739
)
735740

736741
multichannel = True

0 commit comments

Comments
 (0)