|
@@ -260,14 +260,17 @@ class DBManager():
|
|
|
otherTNumList.append(temp)
|
|
|
# if (temp > OtherTNum):
|
|
|
# OtherTNum = temp
|
|
|
- result = Counter(cellUNumList)
|
|
|
- CellUNum = max(result, key=result.get)
|
|
|
-
|
|
|
- result = Counter(cellTNumList)
|
|
|
- CellTNum = max(result, key=result.get)
|
|
|
+
|
|
|
+ if (len(data)>0):
|
|
|
+ result = Counter(cellUNumList)
|
|
|
+ CellUNum = max(result, key=result.get)
|
|
|
+
|
|
|
+ result = Counter(cellTNumList)
|
|
|
+ CellTNum = max(result, key=result.get)
|
|
|
+
|
|
|
+ result = Counter(otherTNumList)
|
|
|
+ OtherTNum = max(result, key=result.get)
|
|
|
|
|
|
- result = Counter(otherTNumList)
|
|
|
- OtherTNum = max(result, key=result.get)
|
|
|
|
|
|
data_blocks = pd.DataFrame()
|
|
|
for line in data:
|