|
@@ -98,6 +98,7 @@ class DBManager():
|
|
OtherT_Num = 0
|
|
OtherT_Num = 0
|
|
CellU_Num = len(data['ffBatteryStatus']['cellVoltageList'])
|
|
CellU_Num = len(data['ffBatteryStatus']['cellVoltageList'])
|
|
CellT_Num = len(data['ffBatteryStatus']['cellTempList'])
|
|
CellT_Num = len(data['ffBatteryStatus']['cellTempList'])
|
|
|
|
+
|
|
try:
|
|
try:
|
|
OtherT_Num = len(data['ffBatteryStatus']['otherTempList'])
|
|
OtherT_Num = len(data['ffBatteryStatus']['otherTempList'])
|
|
except:
|
|
except:
|
|
@@ -207,7 +208,14 @@ class DBManager():
|
|
data_block,CellUNum,CellTNum,OtherTNumm = DBManager._convert_to_dataframe_bms(line, mode)
|
|
data_block,CellUNum,CellTNum,OtherTNumm = DBManager._convert_to_dataframe_bms(line, mode)
|
|
except:
|
|
except:
|
|
continue
|
|
continue
|
|
- data_blocks = np.concatenate((data_blocks,data_block),axis=0)
|
|
|
|
|
|
+ try:
|
|
|
|
+ data_blocks = np.concatenate((data_blocks,data_block),axis=0)
|
|
|
|
+ except Exception as e:
|
|
|
|
+ if 'all the input array dimensions except for the concatenation axis must match exactly' in str(e):
|
|
|
|
+ pass
|
|
|
|
+ else:
|
|
|
|
+ raise e
|
|
|
|
+
|
|
# print('\r'+str(i),end=" ")
|
|
# print('\r'+str(i),end=" ")
|
|
# print(data_block)
|
|
# print(data_block)
|
|
# print(urls)
|
|
# print(urls)
|