Skip to content
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

Get repo to run #3

Merged
merged 5 commits into from
Oct 24, 2015
Merged

Get repo to run #3

merged 5 commits into from
Oct 24, 2015

Conversation

swang
Copy link
Contributor

@swang swang commented Oct 23, 2015

Hi, I've been making some changes to get this repo to work. I've added some documentation to the README that I was initially confused about, and also made some points about running this on MacOSX.

The main things I added were:

  1. Added extra info in the main README.md that doesn't require users to look at the directory structure.
  2. Created a images and negatives folder with README files. Without these directories being initially created, running download_muct.py ends up piping its output to a file called images instead of a directory.
  3. A lot of files downloaded by download_more.py no longer exists or sometimes generate non-image files. I've added a lot of extra checks so they don't get parsed as normal images. I didn't actually remove the files, just ignore them since I'm not sure whether the better option is to just remove all the invalid files.

* Added info about which directory each python file is stored in.
* Added info about possibly having to use `sudo` in order to install python
packages on MacOSX.
* Changed python package from PIL to pillow because PIL no longer exists
  as a package in pip.
If there is no folder in ./data/images, when you run `python
download_muct.py`, it will actually try to create a blob of data called
'images' rather than having a directory. So having READMEs avoids this
problem.
This will now stop downloading files from `download_more.py` that
don't return a 200 response and won't try to parse bad files as an
additional check.
@swang swang changed the title Fix repo to properly run Get repo to run Oct 23, 2015
@swang
Copy link
Contributor Author

swang commented Oct 23, 2015

If you want to see clearer changes that ignore whitespace, https://github.com/auduno/clmtools/pull/3/files?w=1

auduno added a commit that referenced this pull request Oct 24, 2015
@auduno auduno merged commit bfaf02a into auduno:master Oct 24, 2015
@auduno
Copy link
Owner

auduno commented Oct 24, 2015

Many thanks for the fixes! I haven't run the code from scratch, so I wasn't aware of the issue with the missing images and negatives folders.

@swang swang deleted the patchup branch September 16, 2016 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants