Browse Source

变更MGMLX其他温度2的数值,将其他温度1赋值给其他温度2

Eric412V 3 years ago
parent
commit
90ca109846

+ 23 - 0
LIB/MIDDLE/SaftyCenter/DataDiag_Static/SC_BMSUploadError.py

@@ -0,0 +1,23 @@
+import sys
+import numpy as np
+import pandas as pd
+import string
+import os
+from pandas import Series
+from matplotlib import pyplot as plt
+from pandas.core.frame import DataFrame
+from pandas.core.indexes.base import Index
+from LIB.BACKEND import DBManager
+import datetime
+import time
+import string
+import re
+
+
+
+class BMSReportError:
+    def __init__(self):
+            pass
+    def main(sn,param,bms_info,df_Diag_Ram_in):
+        pass
+    

+ 5 - 1
LIB/MIDDLE/SaftyCenter/DataDiag_Static/SC_SamplingSafty.py

@@ -242,8 +242,12 @@ class SamplingSafty:
                     pass
         #——————————————————————————————————OtherTemp————————————————————————————————————
         if param.OtherTempNums>0:
-            OtherTempNum=['其他温度'+str(i) for i in range(1,param.OtherTempNums+1)]
+            OtherTempNum=['其他温度'+str(i) for i in range(1,param.OtherTempNums+1)] 
             OtherTemp=bms_infoN[OtherTempNum]
+            if 'MGMLX' in sn:
+                OtherTemp['其他温度2']=OtherTemp['其他温度1']
+            else:
+                pass
             OtherTemppP=bms_infoP[OtherTempNum]
             maxOtherTemp=OtherTemp.max()
             minOtherTemp=OtherTemp.min()