ziyuzhou02 commited on
Commit
ada561c
·
verified ·
1 Parent(s): 7f951ea

Fix Space startup: sync full app source

Browse files
Files changed (1) hide show
  1. tsfm_bench/data/ts_bench.py +3 -5
tsfm_bench/data/ts_bench.py CHANGED
@@ -3,7 +3,6 @@ from __future__ import annotations
3
  import csv
4
  import json
5
  import logging
6
- import os
7
  import subprocess
8
  import sys
9
  from dataclasses import dataclass
@@ -184,11 +183,10 @@ class TsBenchDataSource:
184
  if not manifest_path.exists():
185
  manifest_path = self.data_root / "model_inputs_latest" / "manifest.csv"
186
  if not manifest_path.exists():
187
- logger.warning(
188
- "No TS-Bench manifest under %s — call refresh() to collect data",
189
- manifest_path.parent,
190
  )
191
- return tuple()
192
 
193
  entries: list[dict[str, Any]]
194
  if manifest_path.suffix == ".json":
 
3
  import csv
4
  import json
5
  import logging
 
6
  import subprocess
7
  import sys
8
  from dataclasses import dataclass
 
183
  if not manifest_path.exists():
184
  manifest_path = self.data_root / "model_inputs_latest" / "manifest.csv"
185
  if not manifest_path.exists():
186
+ raise FileNotFoundError(
187
+ f"No TS-Bench manifest under {self.data_root / 'model_inputs_latest'}. "
188
+ "Run collect_weekly_data.py and export_model_inputs.py first."
189
  )
 
190
 
191
  entries: list[dict[str, Any]]
192
  if manifest_path.suffix == ".json":