georgeamccarthy / protein_search

The neural search engine for proteins.
GNU Affero General Public License v3.0
15 stars 6 forks source link

File paths are not using workspace variable. #11

Closed georgeamccarthy closed 3 years ago

georgeamccarthy commented 3 years ago

Jina has a workspace variable, from which we can construct file paths. See line 93.

Currently relative imports are used which require running from the /backend directory. line , line 70

If app.py is run from the /protein_search directory by python backend/app.py then the error is thrown: Traceback (most recent call last): File "/Users/georgeamccarthy/Documents/workspace/python/protein_search/protein_search/backend/app.py", line 20, in <module> main() File "/Users/georgeamccarthy/Documents/workspace/python/protein_search/protein_search/backend/app.py", line 9, in main fp=open("../data/samelength.csv"), FileNotFoundError: [Errno 2] No such file or directory: '../data/samelength.csv'

fissoreg commented 3 years ago

After today's discussion, it appears like we should just get rid of the workspace variable. This is addressed in #17

For proper directories management, see #18