lmstack 3 years ago
parent
commit
42b7dce66c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      LIB/FRONTEND/soh/main.py

+ 2 - 2
LIB/FRONTEND/soh/main.py

@@ -23,10 +23,10 @@ if __name__ == "__main__":
     end_time=str(now_time)
     start_time=str(start_time)
 
-    for sn in range(SNnums.tolist()):
+    for sn in SNnums.tolist():
         res = NCMSoh.cal_soh(sn, end_time, start_time)
         res.to_csv('BMS_SOH_'+sn+'.csv',encoding='GB18030')
     
-    for sn in range(SNnums.tolist()):
+    for sn in SNnums.tolist():
         res = LFPSoh.cal_soh(sn, end_time, start_time)
         res.to_csv('BMS_SOH_'+sn+'.csv',encoding='GB18030')