robinzyb / cp2kdata

cp2k postprocessing tools
https://robinzyb.github.io/cp2kdata/
GNU Lesser General Public License v3.0
54 stars 18 forks source link

Error identification of higher CP2K version #10

Closed scott-5 closed 1 year ago

scott-5 commented 1 year ago

Regex in header_info.py could not identify higher verison info for CP2K version of 7.1/9.1/2022.2.

It will report like that:

Traceback (most recent call last):
  File "~/miniconda3/lib/python3.9/site-packages/cp2kdata/output.py", line 84, in __init__
    self.DFTInfo = parse_dft_info(self.filename)
  File "~/miniconda3/lib/python3.9/site-packages/cp2kdata/block_parser/header_info.py", line 81, in parse_dft_info
    return DFTInfo(ks_type=dft_info["ks_type"][0][0][0], multiplicity=dft_info["multiplicity"][0][0][0])
IndexError: list index out of range
robinzyb commented 1 year ago

Is that possible to provide the outputs? Actually I have written the unittest for 7.1 and 9.0, which should works

scott-5 commented 1 year ago

output.log

robinzyb commented 1 year ago

output.log

the output is version 9.1. As you mentioned, 7.1 and 2022.2 are not able to parse as well. Can you provide the outputs with version 7.1 and 2022.2 ?

scott-5 commented 1 year ago

output_7.1.log output_2022.2.log Here is it. Please check it.

robinzyb commented 1 year ago

The files have print level "low", however, the print level should be medium or higher which contains necessary information. I have added a commit for checking the print level. see 46598a7db39974747431c5585dc64d9f0787ba37

scott-5 commented 1 year ago

Thanks.