-
-
Notifications
You must be signed in to change notification settings - Fork 211
Have different cache directories for different servers #432
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
Conversation
janvanrijn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Up to discretion of @mfeurer
- we don't need to create cache directory structure already in set_cache_dir() fn
- for this reason the config object doesn't need getters and setters
I will approve once the unit tests succeed
|
This now also partially solves #396. However, not as nicely as expected. |
janvanrijn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved. But Please address my comments :)
| def test_get_setup(self): | ||
| # no setups in default test server | ||
| openml.config.server = 'https://www.openml.org/api/v1/xml/' | ||
| openml.config.set_server_url('https://www.openml.org/api/v1/xml/') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this still a fn?
openml/testing.py
Outdated
| def tearDown(self): | ||
| os.chdir(self.cwd) | ||
| shutil.rmtree(self.workdir) | ||
| for i in range(10): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make 10 a variable?
|
@mfeurer @janvanrijn If you like the current implementation, you can merge the pull the request. Build is passing. |
|
Thanks for the fix @ArlindKadra. Could you please describe which change was actually necessary to fix it? Also, could you please explain the reasoning for changing the |
No description provided.