|
@@ -339,7 +339,6 @@ class BatUniform():
|
|
|
# else:
|
|
|
# pass
|
|
|
elif standingtime2>3600*6:
|
|
|
- standingtime2=0
|
|
|
cellvolt_now=self._cellvolt_get(i)
|
|
|
cellvolt_min=min(cellvolt_now)
|
|
|
cellvolt_max=max(cellvolt_now)
|
|
@@ -347,6 +346,7 @@ class BatUniform():
|
|
|
deltvolt=max(abs(cellvolt_now-cellvolt_last))
|
|
|
|
|
|
if 2 < cellvolt_max < self.param.OcvInflexionBelow-0.002 and 2<cellvolt_min<4.5 and deltvolt<0.005:
|
|
|
+ standingtime2=0
|
|
|
cellvolt_sort=np.argsort(cellvolt_now)
|
|
|
cellvolt_rank=list(np.argsort(cellvolt_sort)+1)
|
|
|
cellmin_num=list(cellvolt_now).index(cellvolt_min)+1
|
|
@@ -373,13 +373,13 @@ class BatUniform():
|
|
|
# pass
|
|
|
|
|
|
elif i>=len(self.df_bms)-3:
|
|
|
- standingtime2=0
|
|
|
cellvolt_now=self._cellvolt_get(i)
|
|
|
cellvolt_min=min(cellvolt_now)
|
|
|
cellvolt_max=max(cellvolt_now)
|
|
|
cellvolt_last=self._cellvolt_get(i-1)
|
|
|
deltvolt=max(abs(cellvolt_now-cellvolt_last))
|
|
|
if 2 < cellvolt_max < self.param.OcvInflexionBelow-0.002 and 2<cellvolt_min<4.5 and deltvolt<0.003:
|
|
|
+ standingtime2=0
|
|
|
cellvolt_sort=np.argsort(cellvolt_now)
|
|
|
cellvolt_rank=list(np.argsort(cellvolt_sort)+1)
|
|
|
cellmin_num=list(cellvolt_now).index(cellvolt_min)+1
|