Skip to content

Conversation

@PGijsbers
Copy link
Collaborator

@PGijsbers PGijsbers commented May 19, 2021

Fixes #1084.
The Parquet file is optional, and failing to reach it (and download it)
should not prevent the usage of the other cached/downloaded files.

To test run:

import openml

d = openml.datasets.get_dataset(4135)
print(d)

once with an internet connection, and once without. Both should work.

The Parquet file is optional, and failing to reach it (and download it)
should not prevent the usage of the other cached/downloaded files.
parquet_file = _get_dataset_parquet(description)
try:
parquet_file = _get_dataset_parquet(description)
except urllib3.exceptions.MaxRetryError:
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure if I should be conservative here, or just catch all errors. Considering we haven't had any issues otherwise I went with the general best practice of only minimally catching exceptions.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable to me.

@mfeurer mfeurer merged commit 0b786e4 into develop May 19, 2021
@mfeurer mfeurer deleted the fix_1084 branch May 19, 2021 15:46
PGijsbers added a commit to Mirkazemi/openml-python that referenced this pull request Feb 23, 2023
The Parquet file is optional, and failing to reach it (and download it)
should not prevent the usage of the other cached/downloaded files.
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

Successfully merging this pull request may close these issues.

Cached datasets unusable without internet access due to missing Parquet files

3 participants