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

Unfold #8

Merged
merged 8 commits into from Mar 12, 2019
Merged

Unfold #8

merged 8 commits into from Mar 12, 2019

Conversation

mailhexu
Copy link
Collaborator

Hi Uthpala,
The band unfolding is added. List of changes:

  • procarunfold module added.
  • scriptUnfold.py added.
  • documentation (docx file, is it the right place?)
  • I found the parser a bit slow so I put my simple version in as readFile2. From your comment, I see that there could be some problem with 1 atom case but I don't know why. I think the extensive use of re.findall() is guilty for the slowness, for large files it can cost minutes, or even hours to parse.
    Cheers,
    HeXu

@fvmunoz
Copy link
Collaborator

fvmunoz commented Feb 21, 2019 via email

@uthpalaherath uthpalaherath merged commit 6765786 into romerogroup:complexparser Mar 12, 2019
@uthpalaherath
Copy link
Member

Merged He Xu's commits to complexparser branch.

@mailhexu
Copy link
Collaborator Author

@fvmunoz
Dear Francisco,
Thanks for your comments. And sorry for reply so late. I only got the time to learn how to use the filter now. The unfolding is done in a point by point manner (a point means a (ikpt, iband, ispin)). If the filter is applied to (ikpt, iband, ispin), it gives exactly one line in PROCAR, since one point happens to be written in one line in the PROCAR. Thus for the unfolding, it is equivalent to read the file line by line. If we use an iterator instead of a list, the memory in need is neglectable.
Best regards,
HeXu

@fvmunoz
Copy link
Collaborator

fvmunoz commented Jun 4, 2019 via email

@uthpalaherath
Copy link
Member

uthpalaherath commented Jun 4, 2019 via email

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.

None yet

3 participants