Fix length constraints
Browse files
app.py
CHANGED
|
@@ -124,8 +124,8 @@ def process_csv_file(csv_file):
|
|
| 124 |
continue
|
| 125 |
trimmed = series.loc[:last_valid].to_numpy(dtype=np.float32)
|
| 126 |
length = trimmed.shape[0]
|
| 127 |
-
if length <
|
| 128 |
-
return None, f"Series '{name}' length {length} invalid. Must be
|
| 129 |
ts_names.append(name)
|
| 130 |
ts_list.append(trimmed)
|
| 131 |
|
|
|
|
| 124 |
continue
|
| 125 |
trimmed = series.loc[:last_valid].to_numpy(dtype=np.float32)
|
| 126 |
length = trimmed.shape[0]
|
| 127 |
+
if length < 16 or length > 1024:
|
| 128 |
+
return None, f"Series '{name}' length {length} invalid. Must be 16 to 1024."
|
| 129 |
ts_names.append(name)
|
| 130 |
ts_list.append(trimmed)
|
| 131 |
|