diff --git a/reduction_tools/auto_process.py b/reduction_tools/auto_process.py index f2ed5ee..7a9435e 100644 --- a/reduction_tools/auto_process.py +++ b/reduction_tools/auto_process.py @@ -324,11 +324,12 @@ def main( script_dir, cwd, runs, indexed = stream_df.indexed[0] # run partialator - if indexed > 100: + partialator_limit = 250 + part_run_name = "{0}_merge".format( 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 ) ) - part_run_name = "{0}_merge".format( run_name ) - hkl_file = "{0}.hkl".format( part_run_name ) 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, cell_file, bins, resolution, max_adu, reservation @@ -372,7 +373,8 @@ def main( script_dir, cwd, runs, pass else: - print( "partialator not run. < 100 indexed" ) + print( "partialator not run. {0} > indexed".format( partialator_limit ) ) + os.chdir( part_run_name ) try: cc = scrub_cc( part_run_name ) except AttributeError as e: