If you read the error message carefully, there is an answer.
The code indicated by the error is
if (0 <= pix) or (pix <= r1):
Here, 0 <= fix
is what the error points to, or fix <= r1
.
In conclusion, when debugging , do not look at the error message roughly, but make sure to interpret it well and carefully.
© 2024 OneMinuteCode. All rights reserved.