xiezhe22 commited on
Commit
3c70d69
·
1 Parent(s): d89f54b

Fix length constraints

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 < 64 or length > 1024:
128
- return None, f"Series '{name}' length {length} invalid. Must be 64 to 1024."
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