本文整理匯總了Python中xia2.Handlers.Flags.Flags.get_hdr_out方法的典型用法代碼示例。如果您正苦於以下問題:Python Flags.get_hdr_out方法的具體用法?Python Flags.get_hdr_out怎麽用?Python Flags.get_hdr_out使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類xia2.Handlers.Flags.Flags
的用法示例。
在下文中一共展示了Flags.get_hdr_out方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: cleanup
# 需要導入模塊: from xia2.Handlers.Flags import Flags [as 別名]
# 或者: from xia2.Handlers.Flags.Flags import get_hdr_out [as 別名]
Chatter.write(xinfo.get_output())
for crystal in crystals.values():
crystal.serialize()
duration = time.time() - start_time
# write out the time taken in a human readable way
Chatter.write('Processing took %s' % \
time.strftime("%Hh %Mm %Ss", time.gmtime(duration)))
# delete all of the temporary mtz files...
cleanup()
# maybe write out the headers
if Flags.get_hdr_out():
from xia2.Wrappers.XIA.Diffdump import HeaderCache
HeaderCache.write(Flags.get_hdr_out())
if stop_after not in ('index', 'integrate'):
# and the summary file
summary_records = xinfo.summarise()
fout = open('xia2-summary.dat', 'w')
for record in summary_records:
fout.write('%s\n' % record)
fout.close()
write_citations()
xinfo.as_json(filename='xia2.json')