From: <bao...@us...> - 2006-05-23 12:23:35
|
Revision: 153 Author: baoilleach Date: 2006-05-23 05:23:19 -0700 (Tue, 23 May 2006) ViewCVS: http://svn.sourceforge.net/cclib/?rev=153&view=rev Log Message: ----------- Added a script to demonstrate the capabilities of cclib...currently not installed by setup.py. Added Paths: ----------- trunk/src/scripts/ trunk/src/scripts/ccget.py Added: trunk/src/scripts/ccget.py =================================================================== --- trunk/src/scripts/ccget.py (rev 0) +++ trunk/src/scripts/ccget.py 2006-05-23 12:23:19 UTC (rev 153) @@ -0,0 +1,58 @@ +import sys +import getopt +import logging + +from cclib.parser import guesstype + +def moreusage(): + """More detailed usage information""" + print """Usage: python ccget.py <attribute> [<attribute>] <compchemlogfile> +where <attribute> is one of the available attributes parsed by cclib +from <compchemlogfile>. +For a list of attributes parsed from the file, type: + python ccget.py --list [or -l]""" + +def usage(): + """Display usage information""" + print """Usage: python ccget.py <attribute> [<attribute>] <compchemlogfile> +Try python ccget.py --help for more information""" + + +def main(): + try: + opts, args = getopt.getopt(sys.argv[1:], "hl", ["help","list"]) + except getopt.GetoptError: + # print help information and exit: + usage() + sys.exit(2) + showattr = False + for o, a in opts: + if o in ("-h", "--help"): + moreusage() + sys.exit() + if o in ("-l", "--list"): + showattr = True + if (not showattr and len(args)<2) or (showattr and len(args)!=1): # Need at least one attribute and the filename + usage() + sys.exit() + + log = guesstype(args[-1]) + log.logger.setLevel(logging.ERROR) + log.parse() + if showattr: + print "cclib can parse the following attributes from %s:" % args[-1] + for x in ['aonames','aooveralps','atomcoords','atomnos', + 'etenergies','etoscs','etrotats','etsecs','etsyms', + 'fonames','fooverlaps','geotargets','geovalues', + 'homos','mocoeffs','moenergies','mosyms','natom','nbasis', + 'nmo','scfenergies','scftargets','scfvalues', + 'vibfreqs','vibirs','vibramans','vibsyms']: + if hasattr(log,x): + print " %s" % x + else: + for arg in args[:-1]: + print getattr(log,arg) + return log + +if __name__ == "__main__": + t = main() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ate...@us...> - 2006-10-12 02:58:25
|
Revision: 368 http://svn.sourceforge.net/cclib/?rev=368&view=rev Author: atenderholt Date: 2006-10-11 19:58:20 -0700 (Wed, 11 Oct 2006) Log Message: ----------- Gaussian parser: Added coreelectrons attribute to handle core electrons in a pseudopotential so that atomic charges can be calculated accurlately. Also required an update to ccget. Example files will be added once it's decided where they should go. Modified Paths: -------------- trunk/src/cclib/parser/gaussianparser.py trunk/src/scripts/ccget This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bao...@us...> - 2006-11-26 22:00:04
|
Revision: 424 http://svn.sourceforge.net/cclib/?rev=424&view=rev Author: baoilleach Date: 2006-11-26 14:00:00 -0800 (Sun, 26 Nov 2006) Log Message: ----------- Added vibcarts: GAMESS now has vibcarts. I need to add some tests, as the rotations and translations are currently included in the normal modes of GAMESS. Add vibcarts to ccget. Modified Paths: -------------- trunk/src/cclib/parser/gamessparser.py trunk/src/scripts/ccget This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ate...@us...> - 2007-01-24 22:29:50
|
Revision: 472 http://svn.sourceforge.net/cclib/?rev=472&view=rev Author: atenderholt Date: 2007-01-24 14:29:48 -0800 (Wed, 24 Jan 2007) Log Message: ----------- CDA and FragmentAnalysis: check to make sure atoms actually line up (otherwise results are meaningless), and if not, log and error and return false; make sure cda script checks for True before printing results Modified Paths: -------------- trunk/src/cclib/method/cda.py trunk/src/cclib/method/fragments.py trunk/src/scripts/cda This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bao...@us...> - 2007-06-26 07:07:51
|
Revision: 665 http://svn.sourceforge.net/cclib/?rev=665&view=rev Author: baoilleach Date: 2007-06-26 00:07:47 -0700 (Tue, 26 Jun 2007) Log Message: ----------- (1) Added atombasis to ccget (2) GAMESS Parser: Now handles aonames and atombasis correctly for all log files. Moved aonames to the EIGENVECTOR section, rather than the OVERLAP section, so that it works in more instances. Modified Paths: -------------- trunk/src/cclib/parser/gamessparser.py trunk/src/scripts/ccget This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ate...@us...> - 2007-10-24 17:16:12
|
Revision: 774 http://cclib.svn.sourceforge.net/cclib/?rev=774&view=rev Author: atenderholt Date: 2007-10-24 10:16:10 -0700 (Wed, 24 Oct 2007) Log Message: ----------- CDA method and script: Added residuals term (contribution of lumos from Fragments A and B), as requested by a few users of PyMOlyze Modified Paths: -------------- trunk/src/cclib/method/cda.py trunk/src/scripts/cda This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |