Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Use API instead of S3 to get the current dataset .zip #56

Closed
wants to merge 6 commits into from
Closed

Use API instead of S3 to get the current dataset .zip #56

wants to merge 6 commits into from

Conversation

zygmuntz
Copy link

@zygmuntz zygmuntz commented Jan 9, 2018

Implementing #36

@xanderdunn
Copy link
Contributor

This is a great start, thanks! Please remove the download_dataset function in 3_util.py since it isn't used anymore.

@xanderdunn
Copy link
Contributor

Also, although it works, it's not a good idea to use the testing_api.py to get the production dataset. That file has special behavior for the unit and integration tests.

Instead, add numerapi as a dependency and import it with from numerapi.numerapi import NumerAPI.

@zygmuntz
Copy link
Author

Done that. The CI test is failing, I don't know why. The details link is 404.

@xanderdunn
Copy link
Contributor

Great, thanks! CI doesn't pass only because this is a non-internal branch. It's fine.

Can you also add numerapi to the setup.py dependencies, and remove the zipfile import in s3_util.py since it isn't used anymore. Than it should be good for merge.

@zygmuntz
Copy link
Author

Sure thing.

@xanderdunn
Copy link
Contributor

The linter has a nit-pick: Remove the dest_path= form this line:
https://github.com/numerai/submission-criteria/pull/56/files#diff-3481e7e91a5b7dd3985f325aa5f95e87R58

It's a positional argument, so it doesn't want a keyword.

If you have pylint installed, you can see the output of the linter using the command that's in the .circleci/config.yml:

find . -iname "*.py" ! -name "setup.py" ! -name "__init__.py" ! -path "./venv/*" | xargs pylint --rcfile=./.pylintrc

@zygmuntz
Copy link
Author

zygmuntz commented Feb 1, 2018

OK

@zygmuntz zygmuntz closed this Feb 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants