Total Complexity | 3 |
Total Lines | 7 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | |||
2 | def step_range(start, stop, step): |
||
3 | step = step if step > 0 else 0.1 |
||
4 | numelements = int((stop-start)/float(step)) |
||
5 | for i in range(numelements+1): |
||
6 | yield start + i*step |
||
7 |