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

Case sensitivity of CBFV on Linux/WSL #13

Open
janash opened this issue Mar 10, 2023 · 0 comments
Open

Case sensitivity of CBFV on Linux/WSL #13

janash opened this issue Mar 10, 2023 · 0 comments

Comments

@janash
Copy link

janash commented Mar 10, 2023

On WSL, a problem is encountered in notebook 3 when running this line of code:

X_train_unscaled, y_train, formulae_train, skipped_train = generate_features(df_train_sampled, elem_prop='oliynyk', drop_duplicates=False, extend_features=True, sum_feat=True)

My error message is the following:

FileNotFoundError: [Errno 2] File /home/janash/projects/materials-project-bp/notebooks/cbfv/element_properties/oliynyk.csv does not exist: '/home/janash/projects/materials-project-bp/notebooks/cbfv/element_properties/oliynyk.csv'

I've concluded that it has to do with case sensitivity of the path. In the repository, the folder is titled uppercase CBFV, while the path in the error message above is lowercase cbfv. If I change the folder name to lowercase, I am able to run the line of code without an error. This does require changing the imports though (ie from CBFV.cbfv.composition import generate_features becomes from cbfv.cbfv.composition import generate_features).

I've checked this on Windows and the case sensitivity is not an issue on that OS.

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

1 participant