pypen.utils.helpers   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 6
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A step_range() 0 5 3
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