Conversation
|
Alright @rplzzz we are ready to roll with a review on this one.
The protocol for installing the example data for Xanthos is now conducted by executing the following after install: from xanthos import InstallSupplement
InstallSupplement("<path to the directory you wish to store the example data in>")Once the the current checks have completed - they will pass - you can review. After I get the OK from you, I will add this install protocol to the README (BTW, we need a readthedocs.io page) and mint the new example data for usage with the most recent version. |
rplzzz
left a comment
There was a problem hiding this comment.
Everything looks good. Can you resolve the conflicts with master? It looks like they're all binary files.
| # Notice | ||
| Xanthos currently supports both Python 2.7 and Python 3.3+, however future support for Python 2 is not guaranteed. This repository also uses the Git Large File Storage (LFS) extension (see https://git-lfs.github.com/ for details). Please run the following command before cloning if you do not already have Git LFS installed: | ||
| `git lfs install`. | ||
| Xanthos currently supports both Python 2.7 and Python 3.3+, however future support for Python 2 is not guaranteed. This repository no longer uses the Git Large File Storage (LFS) extension. Instead, we now have supplementary data to Xanthos archived on Zenodo. This data is automatically downloaded from our current release upon running installing Xanthos locally. |
There was a problem hiding this comment.
It's not exactly automatic, right? My understanding is that you have to run the install command. Is this the readme update you were talking about in your last comment?
| # get Python major version number | ||
| pyversion = sys.version_info.major | ||
|
|
||
| if pyversion <= 2: |
There was a problem hiding this comment.
The <= is a nice touch. Good luck, python 1.x people.
| current_version = get_distribution('xanthos').version | ||
|
|
||
| try: | ||
| data_link = InstallSupplement.DATA_VERSION_URLS[current_version] |
There was a problem hiding this comment.
Nicely done. I hadn't thought of tying the data version to the model version, but it makes sense.
| args = parser.parse_args() | ||
|
|
||
| zen = InstallSupplement(args.example_data_directory) | ||
| del zen |
There was a problem hiding this comment.
Is this del statement needed? The object should be gc'd when the script finishes anyhow, right? Or is there something I'm missing?
The GitLFS dependency for this repository has proven to be problematic for many users. However, Xanthos still has the need to include larger files as an example directory. To solve this issue I completed the following:
InstallSupplementclass that fetches and unzips the Zenodo example data package into the Xanthos root directory,InstallSupplementclass aftersetuphas completed insetup.py,testconfiguration files to recognize the working directory.All tests have passed as executed via Travis.
Resolves #38