From: <bao...@us...> - 2006-04-22 10:00:26
|
Revision: 81 Author: baoilleach Date: 2006-04-22 03:00:16 -0700 (Sat, 22 Apr 2006) ViewCVS: http://svn.sourceforge.net/cclib/?rev=81&view=rev Log Message: ----------- Updated types of scfvalues to be a list of Numeric arrays Modified Paths: -------------- trunk/src/cclib/parser/gamessparser.py Modified: trunk/src/cclib/parser/gamessparser.py =================================================================== --- trunk/src/cclib/parser/gamessparser.py 2006-04-22 09:27:04 UTC (rev 80) +++ trunk/src/cclib/parser/gamessparser.py 2006-04-22 10:00:16 UTC (rev 81) @@ -126,7 +126,7 @@ self.logger.info("Creating attribute scfvalues") self.scfvalues = [] line = inputfile.next() - den = [] + values = [] while line.strip(): # The SCF information is terminated by a blank line try: @@ -138,9 +138,9 @@ # DFT CODE IS SWITCHING BACK TO THE FINER GRID pass else: - den.append(float(line.split()[5])) + values.append(float(line.split()[5])) line = inputfile.next() - self.scfvalues.append(den) + self.scfvalues.append([values]) if line.find("NORMAL COORDINATE ANALYSIS IN THE HARMONIC APPROXIMATION")>=0: # GAMESS has... @@ -348,6 +348,8 @@ if not hasattr(self,"scftargets"): self.logger.info("Creating attribute scftargets[] with default values") self.scftargets = Numeric.array([1e-5]) + if hasattr(self,"scfvalues"): + self.scfvalues = [Numeric.array(x,"f") for x in self.scfvalues] if hasattr(self,"geovalues"): self.geovalues = Numeric.array(self.geovalues,"f") if not hasattr(self,"nindep"): self.logger.info("Creating attribute nindep with default value") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |