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

Fix file existence check in ChargemolAnalysis to verify directory instead. #4226

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lllangWV
Copy link

atomic_densities dir for chargemol is a dir not a file.

I am working with chargemol in a high throughput context with Atomate2. When trying to perform chargemol calculations I could not get past if not os.path.isfile(atomic_densities_path):. I believe this is because if you provide a directory, which is what atomic_densities_path should be, this will always trigger preventing the operation. Unless I am wrong with the functioning of os.path.isfile.

Summary

Major changes:

  • feature 1: Changed isfile to isdir
  • fix 1: Changed isfile to isdir

…tead of file.

atomic_densities dir for chargemold is a dir not a file.
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

Successfully merging this pull request may close these issues.

1 participant