本文整理汇总了Python中cc.tools.io.DataIO.fillOutSpaces方法的典型用法代码示例。如果您正苦于以下问题:Python DataIO.fillOutSpaces方法的具体用法?Python DataIO.fillOutSpaces怎么用?Python DataIO.fillOutSpaces使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cc.tools.io.DataIO
的用法示例。
在下文中一共展示了DataIO.fillOutSpaces方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: listTrans
# 需要导入模块: from cc.tools.io import DataIO [as 别名]
# 或者: from cc.tools.io.DataIO import fillOutSpaces [as 别名]
def listTrans(self):
'''
List all the transitions that have both data and sphinx models
associated with them.
Can be used to figure the index of each transition so you can in- or
exclude them.
Also indicates whether it is a noisy line or not.
'''
strings = ['%i [%scluded]: %s \t at %.2f uncertainty. The line is %snoisy!%s'\
%(ist,ist in self.includedtrans and 'IN' or 'EX',\
DataIO.fillOutSpaces(str(st),60),\
self.trans_uncertainties[ist],\
(not self.noisy[ist] and 'NOT ' or ''),\
self.lll_threshold[ist] <> None and \
' The lll threshold is %.2e'%self.lll_threshold[ist] or\
'')
for ist,st in enumerate(self.translist)]
print '\n'.join(strings)