|
@@ -81,7 +81,7 @@ class SafetyWarning:
|
|
|
cellvolt_rank=cellvolt_rank.str.replace("[", '')
|
|
|
cellvolt_rank=cellvolt_rank.str.replace("]", '')
|
|
|
|
|
|
- plt.figure()
|
|
|
+ # plt.figure()
|
|
|
for i in range(self.param.CellVoltNums):
|
|
|
#漏电流故障判断...........................................................................
|
|
|
if not self.df_short.empty:
|
|
@@ -115,12 +115,12 @@ class SafetyWarning:
|
|
|
R2_list.append(R2)
|
|
|
|
|
|
volt_rate.append(a1)
|
|
|
- plt.plot(xtime1,y1,label=a1)
|
|
|
- plt.scatter( xtime1,VoltChange[volt_column[i]],marker='o')
|
|
|
- plt.legend(loc='best')
|
|
|
- plt.title('单体电压'+str(i+1))
|
|
|
- plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签
|
|
|
- plt.rcParams['axes.unicode_minus']=False #用来正常显示负号
|
|
|
+ # plt.plot(xtime1,y1,label=a1)
|
|
|
+ # plt.scatter( xtime1,VoltChange[volt_column[i]],marker='o')
|
|
|
+ # plt.legend(loc='best')
|
|
|
+ # plt.title('单体电压'+str(i+1))
|
|
|
+ # plt.rcParams['font.sans-serif']=['SimHei'] #用来正常显示中文标签
|
|
|
+ # plt.rcParams['axes.unicode_minus']=False #用来正常显示负号
|
|
|
# plt.show()
|
|
|
|
|
|
if volt3sigma_sum>len(volt3sigma)/2:
|
|
@@ -175,6 +175,6 @@ class SafetyWarning:
|
|
|
else:
|
|
|
pass
|
|
|
|
|
|
- plt.show()
|
|
|
+ # plt.show()
|
|
|
|
|
|
return df_res
|