Ver Fonte

Merge branch 'dev' of http://git.fast-fun.cn:92/lmstack/data_analyze_platform into dev

qingfeng há 2 anos atrás
pai
commit
245cad784b
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      LIB/BACKEND/DBManager.py

+ 4 - 4
LIB/BACKEND/DBManager.py

@@ -172,15 +172,15 @@ class DBManager():
     @staticmethod
     def _convert_to_dataframe_gps(data, mode=0):
         if mode == 0:
-            if data['info']['subType'] == 1:
+            # if data['info']['subType'] == 1:
                 data_block = np.array([data['info'].get('obdTime',None),data['ffGps'].get('locationType',None), data['ffGps'].get('satellites',None),
                                        data['ffGps'].get('latitude',None),data['ffGps'].get('longitude',None),data['ffGps'].get('speed',None), 
                                        data['ffGps'].get('altitude',None), data['ffGps'].get('direction', None), data['ffGps'].get('mileage',None)]).reshape(1,9)
                 df = pd.DataFrame(
                     columns=['时间戳','定位类型', '卫星数','纬度','经度','速度[km/h]','海拔','航向', '里程/m'],data=data_block)
-            elif data['info']['subType'] == 2:
-                df = pd.DataFrame(
-                    columns=['时间戳','定位类型', '卫星数','纬度','经度','速度[km/h]','海拔','航向'])
+            # elif data['info']['subType'] == 2:
+            #     df = pd.DataFrame(
+            #         columns=['时间戳','定位类型', '卫星数','纬度','经度','速度[km/h]','海拔','航向'])
         if mode == 1:
                 data_block = np.array([data['info']['obdTime'],data['ffGps']['locationType'],data['ffGps']['latitude'],data['ffGps']['longitude']
                     ,data['ffGps']['speed'], data['ffGps']['isValid']]).reshape(1,6)