Commit a0440fa6 authored by rmapaah's avatar rmapaah

Issue #13: loop changed from range to enumerate to comply pylint

parent ea9a1ec4
...@@ -71,10 +71,10 @@ def pivot_calibration(matrices4x4): ...@@ -71,10 +71,10 @@ def pivot_calibration(matrices4x4):
# Calculating the rank # Calculating the rank
rank = 0 rank = 0
for i in range(len(s_values)): for i, item in enumerate(s_values):
if s_values[i] < 0.01: if item < 0.01:
s_values[i] = 0 item = 0
if s_values[i] != 0: if item != 0:
rank += 1 rank += 1
if rank < 6: # pylint: disable=literal-comparison if rank < 6: # pylint: disable=literal-comparison
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment