From: <bao...@us...> - 2006-03-06 10:33:39
|
Revision: 3 Author: baoilleach Date: 2006-03-06 02:33:31 -0800 (Mon, 06 Mar 2006) ViewCVS: http://svn.sourceforge.net/cclib/?rev=3&view=rev Log Message: ----------- Made necessary fixes to get cclib up and running. It now parses Adam's large test file. Removed references to gausssum in setup.py. Added call to superclass __init__ method for G03. Fixed error in Logfile.float. Modified Paths: -------------- trunk/setup.py trunk/src/cclib/parser.py Modified: trunk/setup.py =================================================================== --- trunk/setup.py 2006-03-05 22:18:59 UTC (rev 2) +++ trunk/setup.py 2006-03-06 10:33:31 UTC (rev 3) @@ -1,9 +1,8 @@ from distutils.core import setup setup(name="cclib", - version="0.1.2", + version="0.1", author="Noel O'Boyle", author_email="bao...@us...", - url="http://gausssum.sf.net", - scripts=['src/gausssum/gausssum.py'], + url="http://cclib.sourceforge.net", package_dir = {'cclib':'src/cclib'}, packages=['cclib']) Modified: trunk/src/cclib/parser.py =================================================================== --- trunk/src/cclib/parser.py 2006-03-05 22:18:59 UTC (rev 2) +++ trunk/src/cclib/parser.py 2006-03-06 10:33:31 UTC (rev 3) @@ -53,7 +53,7 @@ def __init__(self,filename): self.filename = filename - def float(number): + def float(self,number): """Convert a string to a float avoiding the problem with Ds.""" number = number.replace("D","E") return float(number) @@ -78,7 +78,11 @@ SCFRMS,SCFMAX,SCFENERGY = range(3) # Used to index self.scftarget[] def __init__(self,filename): - # Set up the logger... + # Call the __init__ method of the superclass + super(G03, self).__init__(filename) + + # Set up the logger...will move this into superclass + # through a function call with G03 as a parameter. # Note: all loggers with the same name share the logger. # Here, loggers with different filenames are different self.logger = logging.getLogger('G03.%s' % self.filename) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |