summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--utils/raspberrypi/ctt/ctt_alsc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/raspberrypi/ctt/ctt_alsc.py b/utils/raspberrypi/ctt/ctt_alsc.py
index f4fd09e3..5d8b2ced 100644
--- a/utils/raspberrypi/ctt/ctt_alsc.py
+++ b/utils/raspberrypi/ctt/ctt_alsc.py
@@ -131,7 +131,7 @@ def alsc(Cam, Img, do_alsc_colour, plot=False, grid_size=(16, 12), max_gain=8.0)
pixels.
"""
w, h = Img.w/2, Img.h/2
- dx, dy = (w - 1) // (grid_w - 1), (h - 1) // (grid_h - 1)
+ dx, dy = int((w - 1) // (grid_w - 1)), int((h - 1) // (grid_h - 1))
"""
average the green channels into one