asotr.py: fix bug with decoding command to human-readable format (cmd_decode), add exception if index not finded for specified time

This commit is contained in:
Danila Gamkov
2025-05-20 20:51:59 +03:00
parent 94ddbeb456
commit 9611d99828
13 changed files with 50 additions and 30 deletions

View File

@@ -12,11 +12,11 @@ pict_name = 'periods_profile_10042025.png'
path = '/home/danila/Danila/work/MVN/Soft/asotr_csv/data/'
channel = 'ch1'
asotr_kit = '01'
start_date = '10.04.2025 04:00:00'
end_date = '10.04.2025 12:00:00'
start_date = '24.04.2025 22:30:00'
end_date = '25.04.2025 02:00:00'
# start_date = '06.01.2025 22:40:00'
# end_date = '21.01.2025 01:20:00'
shift = True
shift = False
raw_data, data_dict = asotr.get_data(path, asotr_kit, start_date, end_date, 'minutes')