Skip to content

Conversation

@esoteric-ephemera
Copy link
Contributor

DDEC6 / chargemol is incompatible with PBE / LDA 64 POTCARs because of the SHA and COPYR tags. Adds some workarounds to:

  1. Rewrite the POTCAR without these tags to a temp file if needed
  2. Not store the full POTCAR in memory

@rul048 @kenko911 can you take a look at if this looks OK to you?

@kenko911
Copy link

Hi @esoteric-ephemera, it looks good to me. Thanks!

if not any(k in line for k in CHGMOL_BAD_POTCAR_KEYS)
)
)
f.seek(0)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what this seek is intended to do?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The seek is needed upon reopening the temp file or the cursor might stay at the tail of the file rather than the head

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.

3 participants