Skip to content

Commit 8f1cb08

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 92a64f1 commit 8f1cb08

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

tiatoolbox/utils/image.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,9 @@ def sub_pixel_read( # noqa: CCR001
547547
# than the right/end_x and bottom/end_y values.
548548
bounds, fliplr, flipud = make_bounds_size_positive(bounds)
549549
if fliplr or flipud:
550-
logger.warning("Bounds have a negative size, output will be flipped.", stacklevel=2)
550+
logger.warning(
551+
"Bounds have a negative size, output will be flipped.", stacklevel=2
552+
)
551553

552554
if isinstance(image, Image.Image):
553555
image = np.array(image)

tiatoolbox/utils/visualization.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,10 @@ def get_color(self, annotation: Annotation, edge=False):
640640
)
641641
)
642642
except KeyError:
643-
logger.warning("'score_prop' not found in properties. Using default color.", stacklevel=2)
643+
logger.warning(
644+
"'score_prop' not found in properties. Using default color.",
645+
stacklevel=2,
646+
)
644647
if edge:
645648
return (0, 0, 0, 255) # default to black for edge
646649
return 0, 255, 0, 255 # default color if no score_prop given

0 commit comments

Comments
 (0)