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

Is fs= deprecated in load_from_disk() as well? #5385

Closed
dconathan opened this issue Dec 22, 2022 · 3 comments
Closed

Is fs= deprecated in load_from_disk() as well? #5385

dconathan opened this issue Dec 22, 2022 · 3 comments

Comments

@dconathan
Copy link
Contributor

Describe the bug

The fs= argument was deprecated from Dataset.save_to_disk and Dataset.load_from_disk in favor of automagically figuring it out via fsspec:

fs_token_paths = fsspec.get_fs_token_paths(dataset_path, storage_options=storage_options)
fs: fsspec.AbstractFileSystem = fs_token_paths[0]

Is there a reason the same thing shouldn't also apply to datasets.load.load_from_disk() as well ?

def load_from_disk(dataset_path: str, fs=None, keep_in_memory: Optional[bool] = None) -> Union[Dataset, DatasetDict]:

Steps to reproduce the bug

n/a

Expected behavior

n/a

Environment info

n/a

@mariosasko
Copy link
Contributor

Hi! Yes, we should deprecate the fs param here. Would you be interested in submitting a PR?

@dconathan
Copy link
Contributor Author

Hi! Yes, we should deprecate the fs param here. Would you be interested in submitting a PR?

Yeah I can do that sometime next week. Should the storage_options be a new arg here? I’ll look around for anywhere else where fs is an arg.

@albertvillanova
Copy link
Member

Closed by #5393.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants