Spaces:
Sleeping
Sleeping
Fix Space startup: sync full app source
Browse files
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 |
-
|
| 188 |
-
"No TS-Bench manifest under
|
| 189 |
-
|
| 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":
|