12345678910111213141516 |
- import pandas as pd
- from LIB.BACKEND import DBManager # 以相对路径的方式引入!!!!!
- import V_1_0_0.core as core # 以相对路径的方式引入!!!!!
- if __name__ == '__main__':
-
- sn = "PK10001A326000123"
- st = '2021-07-06 00:00:00'
- et = '2021-07-07 20: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']
- calSor = core.CalSor();
- print(calSor.calSor(df_bms,df_bms))
|