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

[Bug] QE input file not successfully parsed when information blocks are not seperated by an empty line #719

Closed
Carrotkingdom opened this issue Sep 9, 2024 · 1 comment · Fixed by #724
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed qe

Comments

@Carrotkingdom
Copy link

Summary

Please support format VC-relaxation in QE PW.

Detailed Description

When transfering the output file generated during VC-relaxation by QE:
LabeledSystem('task.0/scf.out','qe/pw/scf')
The error reads:
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.10/dist-packages/dpdata/system.py", line 183, in init
self.from_fmt(
File "/usr/local/lib/python3.10/dist-packages/dpdata/system.py", line 220, in from_fmt
return self.from_fmt_obj(load_format(fmt), file_name, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/dpdata/system.py", line 1113, in from_fmt_obj
data = fmtobj.from_labeled_system(file_name, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/dpdata/plugins/qe.py", line 50, in from_labeled_system
) = dpdata.qe.scf.get_frame(file_name)
File "/usr/local/lib/python3.10/dist-packages/dpdata/qe/scf.py", line 147, in get_frame
cell = get_cell(inlines)
File "/usr/local/lib/python3.10/dist-packages/dpdata/qe/scf.py", line 40, in get_cell
blk = get_block(lines, "CELL_PARAMETERS")
File "/usr/local/lib/python3.10/dist-packages/dpdata/qe/scf.py", line 20, in get_block
while len(lines[blk_idx]) != 0 and blk_idx != len(lines):
IndexError: list index out of range

Further Information, Files, and Links

Uploading scf.zip…

@Carrotkingdom Carrotkingdom added the enhancement New feature or request label Sep 9, 2024
@njzjz njzjz added qe help wanted Extra attention is needed labels Sep 9, 2024
@wanghan-iapcm wanghan-iapcm changed the title [Feature Request] [Bug] QE input file not successfully parsed when information blocks are not seperated by an empty line Sep 19, 2024
@wanghan-iapcm wanghan-iapcm added bug Something isn't working and removed enhancement New feature or request labels Sep 19, 2024
@wanghan-iapcm wanghan-iapcm self-assigned this Sep 19, 2024
@wanghan-iapcm wanghan-iapcm linked a pull request Sep 19, 2024 that will close this issue
@wanghan-iapcm
Copy link
Contributor

For the reason of the error, please see the pr #724

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed qe
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants