anthony-wang / BestPractices

Things that you should (and should not) do in your Materials Informatics research.
https://doi.org/10.1021/acs.chemmater.0c01907
MIT License
172 stars 74 forks source link

File not found issue in notebook 3 #2

Closed lawlietsoul closed 4 years ago

lawlietsoul commented 4 years ago

Dear Wang,

thank for this great tutorial! In 3-modeling_classic_models.ipynb by excuting generate_features() I got a FileNotFoundError as it told me 'liynyk.csv' is not found, I think the elem_prob is defined as

anthony-wang commented 4 years ago

Hey @lawlietsoul, thanks for reaching out, and thanks!

This seems to be an issue with relative paths. Could you please let me know how you are starting the Jupyter notebook? For me, it works when I launch the Jupyter kernel in the root directory (i.e. directly launching jupyter notebook in the BestPractices/ root directory, and not in BestPractices/notebooks/).

Could you try that and let me know if that fixes the issue?

lawlietsoul commented 4 years ago

Hello Wang, thanks for the reply. I also tried to start jupyter directly from /BestPractices instead of /BestPractices/notebooks, after lauching the jupyter I come into notebooks to start practice3, and print it inside the notebook it tells me I am in the /BestPractices/notebooks. But I still need to rename CBFV to cbfv to make things work. I also agreed it should be caused by the relative paths, mayebe I did something else wrong. Thanks for the reply!