There are a lot of places where you're getting sequential elements from a list. Use unpacking to make this code more readable:
|
q_p = predictionListStats[0] |
|
q_m = predictionListStats[1] |
At best, this can look like:
q_p, q_m = predictionListStats
If there are more elements in predictionListStats, then you have a couple options:
Explicit assignment
q_p, q_m = predictionListStats[0], predictionListStats[1]
Unpacking sliced list
q_p, q_m = predictionListStats[0:2]
Splat Unpacking
q_p, q_m, *_ = predictionListStats
There are a lot of places where you're getting sequential elements from a list. Use unpacking to make this code more readable:
MEN2017/miscellaneous.py
Lines 74 to 75 in 1f77631
At best, this can look like:
If there are more elements in
predictionListStats, then you have a couple options:Explicit assignment
Unpacking sliced list
Splat Unpacking