|
@@ -32,7 +32,7 @@ class LimitPower(object):
|
|
|
rp = row[self.opt.target]
|
|
|
for i, seg in enumerate(self.segs):
|
|
|
if ws_ <= seg:
|
|
|
- glob_rp.setdefault(self.xs[i], []).append(rp)
|
|
|
+ glob_rp.setdefault(list(self.xs)[i], []).append(rp)
|
|
|
break
|
|
|
rms = []
|
|
|
for i, x in enumerate(self.xs):
|
|
@@ -48,7 +48,7 @@ class LimitPower(object):
|
|
|
while (self.xs[index] in rms or self.xs[index] not in glob_rp) and index >0:
|
|
|
index -= 1
|
|
|
x_l = self.xs[index] if index > 0 else 0
|
|
|
- q2_l = glob_rp[self.xs[index]][0] if index > 0 else 0
|
|
|
+ q2_l = glob_rp[list(self.xs)[index]][0] if index > 0 else 0
|
|
|
down = down + offset
|
|
|
if down > up:
|
|
|
rms.append(x)
|