Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make prepare_split more robust if errors in metadata dataset_info splits #5901

Merged
merged 1 commit into from
Jun 1, 2023
Merged
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
4 changes: 2 additions & 2 deletions src/datasets/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -1706,9 +1706,9 @@ def _prepare_split(
is_local = not is_remote_filesystem(self._fs)
path_join = os.path.join if is_local else posixpath.join

if self.info.splits is not None:
try:
split_info = self.info.splits[split_generator.name]
else:
except Exception:
split_info = split_generator.split_info

SUFFIX = "-JJJJJ-SSSSS-of-NNNNN"
Expand Down