Skip to content

Commit 40ddb49

Browse files
committed
Slightly cleaner posts
1 parent 44e4db2 commit 40ddb49

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

src/murfey/client/contexts/tomo.py

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff 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}")

0 commit comments

Comments
 (0)