@@ -729,6 +729,9 @@ def register_completed_tilt_series(
729729 "dcid" : ids .dcid ,
730730 "appid" : ids .appid ,
731731 "stack_file" : str (stack_file ),
732+ "dose_per_frame" : preproc_params .dose_per_frame ,
733+ "frame_count" : preproc_params .frame_count ,
734+ "kv" : preproc_params .voltage ,
732735 "pixel_size" : preproc_params .pixel_size ,
733736 "manual_tilt_offset" : - tilt_offset ,
734737 "node_creator_queue" : machine_config .node_creator_queue ,
@@ -1120,6 +1123,9 @@ async def request_tomography_preprocessing(
11201123 / str (ppath .stem + "_motion_corrected.mrc" )
11211124 )
11221125 mrc_out = Path ("/" .join (secure_filename (p ) for p in mrc_out .parts ))
1126+
1127+ recipe_name = machine_config .recipes .get ("em-tomo-preprocess" , "em-tomo-preprocess" )
1128+
11231129 data_collection = db .exec (
11241130 select (DataCollectionGroup , DataCollection , ProcessingJob , AutoProcProgram )
11251131 .where (DataCollectionGroup .session_id == session_id )
@@ -1128,7 +1134,7 @@ async def request_tomography_preprocessing(
11281134 .where (DataCollection .dcg_id == DataCollectionGroup .id )
11291135 .where (ProcessingJob .dc_id == DataCollection .id )
11301136 .where (AutoProcProgram .pj_id == ProcessingJob .id )
1131- .where (ProcessingJob .recipe == "em-tomo-preprocess" )
1137+ .where (ProcessingJob .recipe == recipe_name )
11321138 ).all ()
11331139 if data_collection :
11341140 if registered_tilts := db .exec (
@@ -1143,7 +1149,7 @@ async def request_tomography_preprocessing(
11431149 if not mrc_out .parent .exists ():
11441150 mrc_out .parent .mkdir (parents = True , exist_ok = True )
11451151 zocalo_message : dict = {
1146- "recipes" : ["em-tomo-preprocess" ],
1152+ "recipes" : [recipe_name ],
11471153 "parameters" : {
11481154 "node_creator_queue" : machine_config .node_creator_queue ,
11491155 "dcid" : dcid ,
@@ -1158,6 +1164,7 @@ async def request_tomography_preprocessing(
11581164 "mc_uuid" : murfey_ids [0 ],
11591165 "ft_bin" : proc_file .mc_binning ,
11601166 "fm_dose" : proc_file .dose_per_frame ,
1167+ "frame_count" : proc_file .frame_count ,
11611168 "gain_ref" : (
11621169 str (machine_config .rsync_basepath / proc_file .gain_ref )
11631170 if proc_file .gain_ref and machine_config .data_transfer_enabled
0 commit comments