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

Fix CustomDataset.load_from_disk with str/Path objects #341

Merged
merged 3 commits into from
Feb 9, 2024

Conversation

plaguss
Copy link
Contributor

@plaguss plaguss commented Feb 9, 2024

Description

This PR fixes an bug with CustomDataset.load_from_disk. The type information and the docstrings say that it accepts an os.PathLike object but it failed for str objects. Now it works as expected.

Closes #340.

@plaguss plaguss self-assigned this Feb 9, 2024
@plaguss plaguss added the bug Something isn't working label Feb 9, 2024
@gabrielmbmb gabrielmbmb merged commit 37d08fc into main Feb 9, 2024
4 checks passed
@gabrielmbmb gabrielmbmb deleted the fix/review-load-from-disk branch February 9, 2024 08:45
jphme pushed a commit to jphme/distilabel that referenced this pull request Feb 20, 2024
…-io#341)

* Update docs and properly pass extra kwargs

* Force transformation to Path object

* Add extra tests to check for different values from the user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Loading from disk
2 participants