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

Windows Compatibility Filepath #3

Open
supatuffpinkpuff opened this issue Mar 12, 2021 · 0 comments
Open

Windows Compatibility Filepath #3

supatuffpinkpuff opened this issue Mar 12, 2021 · 0 comments

Comments

@supatuffpinkpuff
Copy link

Thanks for making this package! I'm on Windows, and got thrown an error while trying to use it to calculate Elixhauser comorbidities.

Error message: [Errno 2] No such file or directory: 'C:\Users\kirby\Anaconda3\lib\site-packages\icd\comorbidity_mappings/quan_elixhauser10.json'

It looks to me the issue is that in line 31 of icd_to_comorbidities.py there's a hardcoded "/" in rel_path. I think it could be fixed by changing line 29 to

rel_path = os.path.join("comorbidity_mappings",mapping + ".json")

which should then use whatever OS-specific separator is appropriate.

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