fix: Исправил "tesla summary time"

This commit is contained in:
Andrew 2024-12-05 14:10:59 +03:00
parent 6a244afadd
commit 4a32be89be
7 changed files with 16 additions and 28 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@
/venv /venv
*.txt *.txt
*.svg *.svg
/test.py

View File

@ -344,32 +344,19 @@
], ],
"Tesla summary time": [ "Tesla summary time": [
1.824, 2.34 ,
0.516, 2.652 ,
2.160, 2.796,
0.492, 2.4 ,
2.160, 2.208 ,
0.636, 2.34 ,
1.908, 2.256 ,
0.492, 2.544 ,
1.788, 2.405 ,
0.420, 2.405 ,
1.800, 2.358 ,
0.540, 2.37 ,
1.812, 2.442 ,
0.444,
1.884,
0.660,
1.884,
0.521,
1.848,
0.557,
1.848,
0.510,
1.860,
0.510,
1.908,
0.534,
1.908 1.908
] ]

Binary file not shown.

View File

@ -367,7 +367,7 @@ class BasePointPassportFormer:
start_idx, finish_idx = self._find_indexes(signal, dataframe) start_idx, finish_idx = self._find_indexes(signal, dataframe)
if start_idx[0] > finish_idx[0]: if start_idx[0] > finish_idx[0]:
start_idx = np.insert(start_idx, 0, 0) start_idx = np.insert(start_idx, 0, 0)
print (start_idx) #print (start_idx)
start_list = times.loc[start_idx].tolist() start_list = times.loc[start_idx].tolist()
end_list = times.loc[finish_idx].tolist() end_list = times.loc[finish_idx].tolist()
if len(start_list) - len(end_list) == 1: if len(start_list) - len(end_list) == 1:

Binary file not shown.