本文整理汇总了Python中model.jigs.Jig.writemmp方法的典型用法代码示例。如果您正苦于以下问题:Python Jig.writemmp方法的具体用法?Python Jig.writemmp怎么用?Python Jig.writemmp使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类model.jigs.Jig
的用法示例。
在下文中一共展示了Jig.writemmp方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: writemmp
# 需要导入模块: from model.jigs import Jig [as 别名]
# 或者: from model.jigs.Jig import writemmp [as 别名]
def writemmp(self, mapping):
"""
[extends superclass method]
"""
# check a few things, then call superclass method
try:
assert not self.is_homeless() # redundant as of 080111, that's ok
assert len(self.atoms) in (1, _NUMBER_OF_MARKER_ATOMS)
self._check_atom_order()
except:
#bruce 080317, for debugging the save file traceback in
# "assert not self.is_homeless()" (above) in bug 2673,
# happens when saving after region select + delete of any
# duplex; fixed now
msg = "\n*** BUG: exception in checks before DnaMarker.writemmp; " \
"continuing, but beware of errors when reopening the file"
print_compact_traceback( msg + ": ")
pass
return Jig.writemmp(self, mapping)