From: Mark M. <mo...@oc...> - 2009-10-16 14:51:50
Attachments:
exam17.inp
exam17.out
|
Hi All, I ran across the cclib, and it looks just like what I need. However, when I try and parse gamess exam17 I get an error that I have pasted below. Any ideas? Ultimately I would like to get the vibdisps, vibfreqs, and force constant matrix. the gamess log file I want to parse is attached. Thanks, Mark >>> from cclib.parser import ccopen >>> myfile=ccopen("../gtests/exam17.out") >>> myfile.parse() [GAMESS ../gtests/exam17.out INFO] Creating attribute atomcoords[] [GAMESS ../gtests/exam17.out INFO] Creating attribute atomnos[] [GAMESS ../gtests/exam17.out INFO] Creating attribute gbasis[] [GAMESS ../gtests/exam17.out INFO] Creating attribute nbasis: 7 [GAMESS ../gtests/exam17.out INFO] Creating attribute charge: 0 [GAMESS ../gtests/exam17.out INFO] Creating attribute mult: 1 [GAMESS ../gtests/exam17.out INFO] Creating attribute homos[] [GAMESS ../gtests/exam17.out INFO] Creating attribute natom: 3 [GAMESS ../gtests/exam17.out INFO] Creating attribute scftargets[] Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python2.5/site-packages/cclib/parser/logfileparser.py", line 142, in parse self.extract(inputfile, line) File "/usr/lib/python2.5/site-packages/cclib/parser/gamessparser.py", line 350, in extract self.scftargets.append([scftarget]) UnboundLocalError: local variable 'scftarget' referenced before assignment |
From: Noel O'B. <bao...@gm...> - 2009-10-16 15:01:08
|
Hello Mark, Sorry to hear you're having problems. We only fix bugs for public domain output files, so...are you happy to place these two gamess files in the public domain? (If you're not sure what this means, please let us know). If not, could you create an example file with the same problem that you are happy to place in the public domain. - Noel 2009/10/16 Mark Monroe <mo...@oc...>: > Hi All, > > I ran across the cclib, and it looks just like what I need. However, > when I try and parse gamess exam17 I get an error that I have pasted > below. > > Any ideas? Ultimately I would like to get the vibdisps, vibfreqs, and > force constant matrix. > > the gamess log file I want to parse is attached. > > Thanks, > Mark > >>>> from cclib.parser import ccopen >>>> myfile=ccopen("../gtests/exam17.out") >>>> myfile.parse() > [GAMESS ../gtests/exam17.out INFO] Creating attribute atomcoords[] > [GAMESS ../gtests/exam17.out INFO] Creating attribute atomnos[] > [GAMESS ../gtests/exam17.out INFO] Creating attribute gbasis[] > [GAMESS ../gtests/exam17.out INFO] Creating attribute nbasis: 7 > [GAMESS ../gtests/exam17.out INFO] Creating attribute charge: 0 > [GAMESS ../gtests/exam17.out INFO] Creating attribute mult: 1 > [GAMESS ../gtests/exam17.out INFO] Creating attribute homos[] > [GAMESS ../gtests/exam17.out INFO] Creating attribute natom: 3 > [GAMESS ../gtests/exam17.out INFO] Creating attribute scftargets[] > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.5/site-packages/cclib/parser/logfileparser.py", > line 142, in parse > self.extract(inputfile, line) > File "/usr/lib/python2.5/site-packages/cclib/parser/gamessparser.py", > line 350, in extract > self.scftargets.append([scftarget]) > UnboundLocalError: local variable 'scftarget' referenced before > assignment > > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > _______________________________________________ > cclib-devel mailing list > ccl...@li... > https://lists.sourceforge.net/lists/listinfo/cclib-devel > > |
From: Karol M. L. <kar...@gm...> - 2009-10-16 15:19:30
|
Hi there, This is one the GAMESS-US standard test files, so we can produce the output ourselves. Anyway, last year I started testing with all the official GAMESS tests, but only actually fixed two... exam17 is one of those I didn't get around to, obviously. If you could file a bug on sourceforge, then I will certainly fix this... unless someone else does it first :) Karol On Friday 16 October 2009 17:01:01 Noel O'Boyle wrote: > Hello Mark, > > Sorry to hear you're having problems. > > We only fix bugs for public domain output files, so...are you happy to > place these two gamess files in the public domain? (If you're not sure > what this means, please let us know). If not, could you create an > example file with the same problem that you are happy to place in the > public domain. > > - Noel > > 2009/10/16 Mark Monroe <mo...@oc...>: > > Hi All, > > > > I ran across the cclib, and it looks just like what I need. However, > > when I try and parse gamess exam17 I get an error that I have pasted > > below. > > > > Any ideas? Ultimately I would like to get the vibdisps, vibfreqs, and > > force constant matrix. > > > > the gamess log file I want to parse is attached. > > > > Thanks, > > Mark > > > >>>> from cclib.parser import ccopen > >>>> myfile=ccopen("../gtests/exam17.out") > >>>> myfile.parse() > > > > [GAMESS ../gtests/exam17.out INFO] Creating attribute atomcoords[] > > [GAMESS ../gtests/exam17.out INFO] Creating attribute atomnos[] > > [GAMESS ../gtests/exam17.out INFO] Creating attribute gbasis[] > > [GAMESS ../gtests/exam17.out INFO] Creating attribute nbasis: 7 > > [GAMESS ../gtests/exam17.out INFO] Creating attribute charge: 0 > > [GAMESS ../gtests/exam17.out INFO] Creating attribute mult: 1 > > [GAMESS ../gtests/exam17.out INFO] Creating attribute homos[] > > [GAMESS ../gtests/exam17.out INFO] Creating attribute natom: 3 > > [GAMESS ../gtests/exam17.out INFO] Creating attribute scftargets[] > > Traceback (most recent call last): > > File "<stdin>", line 1, in <module> > > File > > "/usr/lib/python2.5/site-packages/cclib/parser/logfileparser.py", line > > 142, in parse > > self.extract(inputfile, line) > > File "/usr/lib/python2.5/site-packages/cclib/parser/gamessparser.py", > > line 350, in extract > > self.scftargets.append([scftarget]) > > UnboundLocalError: local variable 'scftarget' referenced before > > assignment -- written by Karol Langner Fri Oct 16 17:24:10 CEST 2009 |
From: Karol M. L. <kar...@gm...> - 2009-10-17 15:25:31
|
Hello again, I did the fix. Parsing does not fail anymore for exam17 -- so you can try out the current trunk version. The problem was a slightly different print out in the case of ROHF SCF calculations. That covers a few other GAMESS tests as well. Mark, let us now if you run into anything else that does not work! @list: Note that I fixed the parsed data tables on the wiki, it said that scftargets is an array of rank 2, but in fact it is a list of arrays of rank 1. Cheers, Karol On Friday 16 October 2009 17:01:01 Noel O'Boyle wrote: > Hello Mark, > > Sorry to hear you're having problems. > > We only fix bugs for public domain output files, so...are you happy to > place these two gamess files in the public domain? (If you're not sure > what this means, please let us know). If not, could you create an > example file with the same problem that you are happy to place in the > public domain. > > - Noel > > 2009/10/16 Mark Monroe <mo...@oc...>: > > Hi All, > > > > I ran across the cclib, and it looks just like what I need. However, > > when I try and parse gamess exam17 I get an error that I have pasted > > below. > > > > Any ideas? Ultimately I would like to get the vibdisps, vibfreqs, and > > force constant matrix. > > > > the gamess log file I want to parse is attached. > > > > Thanks, > > Mark > > > >>>> from cclib.parser import ccopen > >>>> myfile=ccopen("../gtests/exam17.out") > >>>> myfile.parse() > > > > [GAMESS ../gtests/exam17.out INFO] Creating attribute atomcoords[] > > [GAMESS ../gtests/exam17.out INFO] Creating attribute atomnos[] > > [GAMESS ../gtests/exam17.out INFO] Creating attribute gbasis[] > > [GAMESS ../gtests/exam17.out INFO] Creating attribute nbasis: 7 > > [GAMESS ../gtests/exam17.out INFO] Creating attribute charge: 0 > > [GAMESS ../gtests/exam17.out INFO] Creating attribute mult: 1 > > [GAMESS ../gtests/exam17.out INFO] Creating attribute homos[] > > [GAMESS ../gtests/exam17.out INFO] Creating attribute natom: 3 > > [GAMESS ../gtests/exam17.out INFO] Creating attribute scftargets[] > > Traceback (most recent call last): > > File "<stdin>", line 1, in <module> > > File > > "/usr/lib/python2.5/site-packages/cclib/parser/logfileparser.py", line > > 142, in parse > > self.extract(inputfile, line) > > File "/usr/lib/python2.5/site-packages/cclib/parser/gamessparser.py", > > line 350, in extract > > self.scftargets.append([scftarget]) > > UnboundLocalError: local variable 'scftarget' referenced before > > assignment -- written by Karol Langner Sat Oct 17 17:02:46 CEST 2009 |