Skip to content

Commit

Permalink
Merge pull request #9 from Leon0402/fix/catchNonExistentDatasets
Browse files Browse the repository at this point in the history
Raise exception for non-existent datasets.
  • Loading branch information
BorisIvanovic authored Jul 17, 2022
2 parents 9b6283c + f6a43e8 commit 37ad56f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/trajdata/utils/env_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def get_raw_dataset(dataset_name: str, data_dir: str) -> RawDataset:

if "eupeds" in dataset_name:
return EUPedsDataset(dataset_name, data_dir, parallelizable=True)

raise ValueError(f"Dataset with name '{dataset_name}' is not supported")


def get_raw_datasets(data_dirs: Dict[str, str]) -> List[RawDataset]:
Expand Down

0 comments on commit 37ad56f

Please sign in to comment.