Skip to content

Commit

Permalink
Apply pre-commit fix
Browse files Browse the repository at this point in the history
From the artifact of the previous workflow run
  • Loading branch information
geo-ghci-int[bot] committed Jan 7, 2025
1 parent 13ab6da commit d6a4591
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019-2024, Stéphane Brunner
Copyright (c) 2019-2025, Stéphane Brunner

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
3 changes: 1 addition & 2 deletions deskew/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ def determine_skew_dev(
],
]:
"""Calculate skew angle."""

num_angles = round(np.pi / min_deviation)
imagergb = rgba2rgb(image) if len(image.shape) == 3 and image.shape[2] == 4 else image # type: ignore[no-untyped-call]
img = rgb2gray(imagergb) if len(imagergb.shape) == 3 else imagergb
Expand Down Expand Up @@ -222,7 +221,7 @@ def determine_skew_debug_images(
axe.set_axis_off()
axe.set_title("Detected lines")

for _, line_angle, dist in zip(*hough_line_peaks_data):
for _, line_angle, dist in zip(*hough_line_peaks_data, strict=False):
(coord0x, coord0y) = dist * np.array([np.cos(line_angle), np.sin(line_angle)])
angle2 = (
(line_angle % np.pi - np.pi / 2)
Expand Down

0 comments on commit d6a4591

Please sign in to comment.