1. add README for windows. 2. rewrite some python scripts and bat-files according to windows requirements. 3. Create tm_brd_parser.py and tm_wheel_parser.py for demonstration how to work with data in python

This commit is contained in:
2025-06-09 20:05:35 +03:00
parent b2380a2d6e
commit ab2a3e8b53
13 changed files with 278 additions and 196 deletions

View File

@@ -232,12 +232,10 @@ def get_data(path, asotr_kit, start_date, end_date, time_accuracy):
fname = [path + fname_temp, path + fname_tempSet, path + fname_pow]
dateparse = lambda x: datetime.strptime(x, "%d.%m.%Y %H:%M:%S.%f")
try:
data = [ pd.read_csv(fname[0], sep=";", parse_dates=["timestamp"], date_parser=dateparse),
pd.read_csv(fname[1], sep=";", parse_dates=["timestamp"], date_parser=dateparse),
pd.read_csv(fname[2], sep=";", parse_dates=["timestamp"], date_parser=dateparse),]
data = [ pd.read_csv(fname[0], sep=";", parse_dates=["timestamp"], date_format="%d.%m.%Y %H:%M:%S.%f"),
pd.read_csv(fname[1], sep=";", parse_dates=["timestamp"], date_format="%d.%m.%Y %H:%M:%S.%f"),
pd.read_csv(fname[2], sep=";", parse_dates=["timestamp"], date_format="%d.%m.%Y %H:%M:%S.%f"),]
except FileNotFoundError:
print(f'Error opening file: one (or all) file not found in directory: \n{fname}')
return