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

Gaussian natural orbital parsing #756

Closed
eimrek opened this issue Aug 19, 2019 · 1 comment · Fixed by #857
Closed

Gaussian natural orbital parsing #756

eimrek opened this issue Aug 19, 2019 · 1 comment · Fixed by #857
Assignees
Milestone

Comments

@eimrek
Copy link
Contributor

eimrek commented Aug 19, 2019

Hi cclib community, when I am trying to parse my gaussian ub3lyp calculation with pop=naturalorbitals enabled, I get the following error:

~/opt/cclib/cclib/parser/gaussianparser.py in natural_orbital_single_spin_parsing(inputfile, updateprogress_title)
   1513                                 atombasis.append(basisonatom)
   1514                             basisonatom = []
-> 1515                             atomname = "%s%s" % (parts[2], parts[1])
   1516                         orbital = line[11:20].strip()
   1517                         aonames.append("%s_%s" % (atomname, orbital))

IndexError: list index out of range

when I revert the "Elmar Neumann's example" change back to :12 in the following code

1507                    if base == 0:
1508                        # Changed below from :12 to :11 to deal with Elmar Neumann's example.
1509                        parts = line[:11].split()
1510                        # New atom.
1511                        if len(parts) > 1:
1512                            if i > 0:
1513                                atombasis.append(basisonatom)
1514                            basisonatom = []
1515                            atomname = "%s%s" % (parts[2], parts[1])
1516                        orbital = line[11:20].strip()

everything works.

Here's the log file g.log

@langner langner added this to the v1.6.3 milestone Sep 5, 2019
@langner
Copy link
Member

langner commented Sep 5, 2019

Thanks for the report. I'll try to get to this after we release v1.6.2, unless someone beats me to it.

langner added a commit to langner/cclib that referenced this issue May 7, 2020
langner added a commit to langner/cclib-data that referenced this issue May 7, 2020
shivupa added a commit to cclib/cclib-data that referenced this issue May 13, 2020
Gaussian: Adding logfile from issue cclib/cclib#756
shivupa pushed a commit to shivupa/cclib that referenced this issue Sep 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants