(path: Path)
| 34 | |
| 35 | |
| 36 | def _load_one_trajectory(path: Path) -> PersistedTrajectory: |
| 37 | raw = json.loads(path.read_text(encoding="utf-8")) |
| 38 | |
| 39 | if raw.get("scenario_id") is None: |
| 40 | raw["scenario_id"] = path.stem |
| 41 | |
| 42 | return PersistedTrajectory.from_raw(raw) |
| 43 | |
| 44 | |
| 45 | def load_scenarios(paths: Iterable[Path] | Path) -> list[Scenario]: |
no test coverage detected