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

Preprocessing.py #17

Closed
TrentBrick opened this issue Apr 19, 2019 · 4 comments
Closed

Preprocessing.py #17

TrentBrick opened this issue Apr 19, 2019 · 4 comments

Comments

@TrentBrick
Copy link

I downloaded CASP12 from ProteinNet and put the datafiles in data/raw I then added these lines to the bottom of preprocessing.py:

use_gpu=False process_raw_data(use_gpu, force_pre_processing_overwrite=True)

Running it gave me a read file error: FileNotFoundError: [Errno 2] No such file or directory: 'data/raw/raw\\sample.txt'

So I changed this line (line 25 in the process_raw_data function: filename = file_path.split('/')[-1]

to this: filename = file_path.split('\\')[-1] and it then worked.

@TrentBrick
Copy link
Author

I have added a pull request for this change here #18

Disclaimer: I have never contributed to opensource projects before or ever made a pull request!

@JeppeHallgren
Copy link
Collaborator

JeppeHallgren commented Apr 19, 2019

Hey @TrentBrick ,

Thanks for filing this. As I wrote on the PR, I believe \\ is Windows specific. Should be quite simple to check was OS the code is running under though: https://stackoverflow.com/questions/1854/python-what-os-am-i-running-on :)

@TrentBrick
Copy link
Author

Yes I am currently running Windows, should have realized this may be Windows specific!

@JeppeHallgren
Copy link
Collaborator

Fixed in #18

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

No branches or pull requests

2 participants