main.py 554 B

12345678910111213141516
  1. import pandas as pd
  2. from LIB.BACKEND import DBManager # 以相对路径的方式引入!!!!!
  3. import V_1_0_0.core as core # 以相对路径的方式引入!!!!!
  4. if __name__ == '__main__':
  5. sn = "PK10001A326000123"
  6. st = '2021-07-06 00:00:00'
  7. et = '2021-07-07 20:00:00'
  8. dbManager = DBManager.DBManager()
  9. df_data = dbManager.get_data(sn=sn, start_time=st, end_time=et, data_groups=['bms', 'gps', 'accum', 'system'])
  10. #
  11. df_bms = df_data['bms']
  12. calSor = core.CalSor();
  13. print(calSor.calSor(df_bms,df_bms))