-
Notifications
You must be signed in to change notification settings - Fork 631
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
[BUG] Example.py has wrong DATA_PATH #1703
Comments
Thanks for the report! The fix seems simple, so a pull request with a fix, and a simple test would be much appreciated! It appears that this was not tested, then? |
Seems like the issue is with the entire I'm doing some research and running the examples is necessary for me, therefore I will probably end up testing it. As for creating new tests, I will look into that as the testing necessary is through |
Thanks! Testing via I am surprised that the examples are not tested. We test the notebooks though, now, that was added in 1.1. |
From what I've seen the testing happens over the notebooks as they're converted to .py files before testing. For the other errors I can manage with pytest. |
Could you explain that, i.e., why? I do not get this. The |
Because when the repo is cloned, the clone path is relative to your working dir, and the data is downloaded relative to the clone dir. But when the library is installed, the path is absolute and not relative, it is under |
I see, let's change this so it works in both cases then. Looking forward to a PR, that would be appreciated! |
Describe the bug
pytorch-forecasting/pytorch_forecasting/data/examples.py
Line 13 in b8c3980
The following line gets the parent of the
__file__
which is incorrect when I'm importing the library. The file should be the current directory.To Reproduce
Versions
pytorch_forecast version 1.1.1
The text was updated successfully, but these errors were encountered: