fixed if run partialator bug
This commit is contained in:
@@ -324,11 +324,12 @@ def main( script_dir, cwd, runs,
|
|||||||
indexed = stream_df.indexed[0]
|
indexed = stream_df.indexed[0]
|
||||||
|
|
||||||
# run partialator
|
# run partialator
|
||||||
if indexed > 100:
|
partialator_limit = 250
|
||||||
print( "indexed {0} - now run partialator and make mtz".format( indexed ) )
|
|
||||||
|
|
||||||
part_run_name = "{0}_merge".format( run_name )
|
part_run_name = "{0}_merge".format( run_name )
|
||||||
hkl_file = "{0}.hkl".format( part_run_name )
|
hkl_file = "{0}.hkl".format( part_run_name )
|
||||||
|
if indexed > partialator_limit:
|
||||||
|
print( "indexed {0} - now run partialator and make mtz".format( indexed ) )
|
||||||
|
|
||||||
if not os.path.isfile( "{0}/{1}/{2}".format( proc_dir, part_run_name, hkl_file ) ):
|
if not os.path.isfile( "{0}/{1}/{2}".format( proc_dir, part_run_name, hkl_file ) ):
|
||||||
run_partialator( script_dir, part_run_name, stream_file, pointgroup, model, iterations,
|
run_partialator( script_dir, part_run_name, stream_file, pointgroup, model, iterations,
|
||||||
cell_file, bins, resolution, max_adu, reservation
|
cell_file, bins, resolution, max_adu, reservation
|
||||||
@@ -372,7 +373,8 @@ def main( script_dir, cwd, runs,
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print( "partialator not run. < 100 indexed" )
|
print( "partialator not run. {0} > indexed".format( partialator_limit ) )
|
||||||
|
os.chdir( part_run_name )
|
||||||
try:
|
try:
|
||||||
cc = scrub_cc( part_run_name )
|
cc = scrub_cc( part_run_name )
|
||||||
except AttributeError as e:
|
except AttributeError as e:
|
||||||
|
|||||||
Reference in New Issue
Block a user