-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[MNT] URLs changed on CRAN; updated _fpp3_loaders.py accordingly #7084
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
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.
hm, we ran a full test suite today and this was not detected - are the tests covering success of downloads properly?
(the request is to clarify, and if not, then we should add tests)
we could also upload the data to the |
With help from GitHub Copilot, here is a sample test function to be added to the test suite. Please suggest changes or explain where this test function should be placed so that it becomes part of the "full test suite". Thanks
|
I responded to this request with sample test. Please advise if this is an ok test and where to place it. Thanks |
Hm, looks good with one minor issue: if we do it this way, we would have to update the dataset URL in two places, and if one changes it in only one place (e.g., next time we need to update), the test will no longer work. We should hence use |
Good point about the duplication of the url's. Fixed. Good catch. Released. |
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.
Thanks.
FPP3 datasets are loaded from CRAN, using fixed URLs. CRAN updated two of the three URLs used by _fpp3_loaders.py. This PR updates the URLs accordingly (otherwise the functionality is broken.) A reviewer can run the following code to test the change, if desired. ``` import matplotlib.pyplot as plt from sktime.datasets import load_fpp3 from sktime.utils.plotting import plot_series y = load_fpp3('aus_production')['Beer'] fig, ax = plot_series(y) plt.show() ```
FPP3 datasets are loaded from CRAN, using fixed URLs. CRAN updated two of the three URLs used by _fpp3_loaders.py. This PR updates the URLs accordingly (otherwise the functionality is broken.)
A reviewer can run the following code to test the change, if desired.