anthony-wang / anthony-wang/BestPractices

Case sensitivity of CBFV on Linux/WSL

Đang mở
#13 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Jupyter Notebook
Star
205
Fork
81
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.