Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion opf/_eval/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def iter_json_records(dataset_path: str) -> Iterator[Mapping[str, object]]:
raise ValueError("Dataset path must be local filesystem only (no URI schemes).")
if "*" in dataset_path:
file_paths = sorted(glob.glob(dataset_path))
elif os.path.exists(dataset_path):
elif os.path.isfile(dataset_path):
file_paths = [dataset_path]
else:
file_paths = sorted(glob.glob(f"{dataset_path.rstrip('/')}/*.gz"))
Expand Down