Skip to content

Conversation

@mfeurer
Copy link
Collaborator

@mfeurer mfeurer commented Jun 12, 2023

Reference Issue

Fixes #1124

What does this PR implement/fix? Explain your changes.

  • Introduce the concept of a root_cache_directory, i.e. the cache directory in which the concrete cache directories for the different servers reside
  • Rename the function set_root_directory to set_root_cache_directory
  • Improve the docstring of both functions

How should this PR be tested?

Regular unit tests.

Any other comments?

No.

mfeurer added 3 commits June 12, 2023 17:37
Make variable `openml.config.cache_directory` private so that
there is no confusion on how to retrieve the cache directory
(since this should be done via `openml.config.get_cache_directory`)
Copy link
Collaborator

@PGijsbers PGijsbers left a comment

Choose a reason for hiding this comment

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

See comments.

@codecov-commenter
Copy link

codecov-commenter commented Jun 12, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +2.91 🎉

Comparison is base (a4ec4bc) 81.27% compared to head (8e2de47) 84.19%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1254      +/-   ##
===========================================
+ Coverage    81.27%   84.19%   +2.91%     
===========================================
  Files           38       38              
  Lines         5010     5010              
===========================================
+ Hits          4072     4218     +146     
+ Misses         938      792     -146     
Impacted Files Coverage Δ
openml/config.py 82.18% <100.00%> (+0.57%) ⬆️
openml/testing.py 84.43% <100.00%> (ø)

... and 12 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@mfeurer mfeurer requested a review from PGijsbers June 13, 2023 07:50
Copy link
Collaborator

@PGijsbers PGijsbers left a comment

Choose a reason for hiding this comment

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

LGTM

@PGijsbers PGijsbers merged commit a7f2639 into develop Jun 13, 2023
@PGijsbers PGijsbers deleted the fix_1124 branch June 13, 2023 13:19
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.

Provide clear naming for the inconsistent ways to get the cache directory

4 participants