Spaces:
Build error
Build error
commented point
Browse files- funcs/processor.py +4 -4
funcs/processor.py
CHANGED
@@ -66,10 +66,10 @@ def process_data(input_file, slice_size=64, min_slice_size=10, sample_rate=20, w
|
|
66 |
# Find the index where all differences are below the threshold
|
67 |
no_significant_change_index = differences[differences.lt(threshold).all(axis=1)].index
|
68 |
|
69 |
-
if not no_significant_change_index.empty:
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
|
74 |
# Save the resulting DataFrame to a new file
|
75 |
data.to_csv('output.csv', sep=";", na_rep="NaN", float_format="%.0f")
|
|
|
66 |
# Find the index where all differences are below the threshold
|
67 |
no_significant_change_index = differences[differences.lt(threshold).all(axis=1)].index
|
68 |
|
69 |
+
# if not no_significant_change_index.empty:
|
70 |
+
# # Save the data up to the point where no significant change appears in all channels
|
71 |
+
# data = data.loc[:no_significant_change_index[0]]
|
72 |
+
# return None, None, f'Warning: Significantly shortened > check the recordings', None, None, None, None, None, None
|
73 |
|
74 |
# Save the resulting DataFrame to a new file
|
75 |
data.to_csv('output.csv', sep=";", na_rep="NaN", float_format="%.0f")
|