File tree Expand file tree Collapse file tree 1 file changed +10
-18
lines changed
src/murfey/client/contexts Expand file tree Collapse file tree 1 file changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -252,24 +252,16 @@ def _add_tilt(
252252 capture_post (dc_url , json = dc_data )
253253
254254 proc_url = f"{ str (environment .url .geturl ())} /visits/{ environment .visit } /{ environment .murfey_session } /register_processing_job"
255- capture_post (
256- proc_url ,
257- json = {
258- "tag" : tilt_series ,
259- "source" : str (self ._basepath ),
260- "recipe" : "em-tomo-preprocess" ,
261- "experiment_type" : "tomography" ,
262- },
263- )
264- capture_post (
265- proc_url ,
266- json = {
267- "tag" : tilt_series ,
268- "source" : str (self ._basepath ),
269- "recipe" : "em-tomo-align" ,
270- "experiment_type" : "tomography" ,
271- },
272- )
255+ for recipe in ("em-tomo-preprocess" , "em-tomo-align" ):
256+ capture_post (
257+ proc_url ,
258+ json = {
259+ "tag" : tilt_series ,
260+ "source" : str (self ._basepath ),
261+ "recipe" : recipe ,
262+ "experiment_type" : "tomography" ,
263+ },
264+ )
273265
274266 except Exception as e :
275267 logger .error (f"ERROR { e } , { environment .data_collection_parameters } " )
You can’t perform that action at this time.
0 commit comments