本文整理匯總了Python中xia2.Handlers.Flags.Flags.get_egg方法的典型用法代碼示例。如果您正苦於以下問題:Python Flags.get_egg方法的具體用法?Python Flags.get_egg怎麽用?Python Flags.get_egg使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類xia2.Handlers.Flags.Flags
的用法示例。
在下文中一共展示了Flags.get_egg方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: open
# 需要導入模塊: from xia2.Handlers.Flags import Flags [as 別名]
# 或者: from xia2.Handlers.Flags.Flags import get_egg [as 別名]
except exceptions.Exception, e:
traceback.print_exc(file = open('xia2.error', 'w'))
Chatter.write('Status: error "%s"' % str(e))
if len(sys.argv) < 2 or '-help' in sys.argv:
help()
sys.exit()
wd = os.getcwd()
try:
#xia2_index()
from xia2_main import xia2_main
xia2_main(stop_after='index')
Chatter.write('Status: normal termination')
from xia2.Handlers.Flags import Flags
if Flags.get_egg():
from xia2.lib.bits import message
message('xia2 status normal termination')
except exceptions.Exception, e:
traceback.print_exc(file = open(os.path.join(wd, 'xia2.error'), 'w'))
Chatter.write('Status: error "%s"' % str(e))
from xia2.Handlers.Flags import Flags
if Flags.get_egg():
from xia2.lib.bits import message
message('xia2 status error %s' % str(e))
if __name__ == '__main__':
run()
示例2: _scale
# 需要導入模塊: from xia2.Handlers.Flags import Flags [as 別名]
# 或者: from xia2.Handlers.Flags.Flags import get_egg [as 別名]
#.........這裏部分代碼省略.........
else:
rejected += 1
Debug.write('Wrote %d old reflections to REMOVE.HKL' % \
(len(current_remove) - rejected))
Debug.write('Rejected %d as z < %f' % \
(rejected, z_min))
# and the new reflections
rejected = 0
used = 0
for remove in final_remove:
z = remove[3]
if z >= z_min:
used += 1
remove_hkl.write('%d %d %d %f\n' % remove)
else:
rejected += 1
Debug.write('Wrote %d new reflections to REMOVE.HKL' % \
(len(final_remove) - rejected))
Debug.write('Rejected %d as z < %f' % \
(rejected, z_min))
remove_hkl.close()
# we want to rerun the finishing step so...
# unless we have added no new reflections
if used:
self.set_scaler_done(False)
if not self.get_scaler_done():
Chatter.write('Excluding outlier reflections Z > %.2f' %
Flags.get_z_min())
if Flags.get_egg():
for record in ttt():
Chatter.write(record)
return
debug_memory_usage()
# now get the reflection files out and merge them with aimless
output_files = xscale.get_output_reflection_files()
wavelength_names = output_files.keys()
# these are per wavelength - also allow for user defined resolution
# limits a la bug # 3183. No longer...
for epoch in self._sweep_information.keys():
input = self._sweep_information[epoch]
intgr = input['integrater']
rkey = input['dname'], input['sname']
if intgr.get_integrater_user_resolution():
dmin = intgr.get_integrater_high_resolution()
if not self._user_resolution_limits.has_key(rkey):
self._scalr_resolution_limits[rkey] = dmin
self._user_resolution_limits[rkey] = dmin
elif dmin < self._user_resolution_limits[rkey]:
self._scalr_resolution_limits[rkey] = dmin
self._user_resolution_limits[rkey] = dmin