本文整理汇总了Python中Settings.Settings.parseCommandLine方法的典型用法代码示例。如果您正苦于以下问题:Python Settings.parseCommandLine方法的具体用法?Python Settings.parseCommandLine怎么用?Python Settings.parseCommandLine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Settings.Settings
的用法示例。
在下文中一共展示了Settings.parseCommandLine方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: Settings
# 需要导入模块: from Settings import Settings [as 别名]
# 或者: from Settings.Settings import parseCommandLine [as 别名]
# Advantage of this approach is ESS independence
#XXX Gaussian: Figure out why post_hf lot is determined incorrectly and energies do not show up
# For now this functionality does not look necessary, as we rarely use MP2 and CI, and there exist better programs for CC and MR
#XXX color logging:
# Gives nothing to functionality but might add issues with OS compatibility
#XXX T1 diagnostics
# Gaussian does not show t1 diagnostic by default, and it can not be activated in CBS-QB3
# procedure, so for now showing t1 diagnostics would not be very helpful
#XXX write topology to .mol file
# Using different file formats is inconvinient, and implementing topologies does not worth that mess.
#debug = 'DEBUG'
settings = Settings(FromConfigFile = True)
Top.settings = settings
files = settings.parseCommandLine(sys.argv[1:])
if settings.debug:
debug = 'DEBUG'
else:
debug = 'INFO'
log = logging.getLogger('terse.py')
DebugLevel = getattr(logging,debug)
lf = '[%(levelname)s: %(funcName)s at %(filename)s +%(lineno)s] %(message)s'
logging.basicConfig(format=lf ,level=DebugLevel)
absolute_tersepic = settings.OutputFolder + '/' + settings.tersepic
if not IO.prepareDir(settings.OutputFolder):