1234567891011121314151617181920 |
- # 获取数据
- import sys
- from LIB.BACKEND import DBManager
- from LIB.BACKEND import DataPreProcess
- dataPrePro = DataPreProcess.DataPreProcess()
- sn = "MGMCLN750N215N097"
- st = '2022-01-01 00:00:00'
- et = '2022-03-01 00:00:00'
- dbManager = DBManager.DBManager()
- df_data = dbManager.get_data(sn=sn, start_time=st, end_time=et, data_groups=['bms', 'gps', 'accum', 'system'])
- #
- df_bms = df_data['bms']
- df_gps = df_data['gps']
- df_accum = df_data['accum']
- df_system = df_data['system']
- df_bms = dataPrePro.data_fault_tag(sn,df_bms)
|