Skip to content

Commit 42a34ba

Browse files
Add sxt router and rename recipe (#795)
1 parent af6bbe1 commit 42a34ba

5 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/murfey/client/contexts/sxt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def register_sxt_data_collection(
8585
)
8686

8787
recipes_to_assign_pjids = [
88-
"sxt-tomo-align",
88+
"sxt-aretomo",
8989
]
9090
for recipe in recipes_to_assign_pjids:
9191
capture_post(

src/murfey/server/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ class Settings(BaseSettings):
9696
app.include_router(murfey.server.api.workflow.router)
9797
app.include_router(murfey.server.api.workflow.correlative_router)
9898
app.include_router(murfey.server.api.workflow.spa_router)
99+
app.include_router(murfey.server.api.workflow.sxt_router)
99100
app.include_router(murfey.server.api.workflow.tomo_router)
100101
app.include_router(murfey.server.api.workflow_clem.router)
101102
app.include_router(murfey.server.api.workflow_fib.router)

src/murfey/workflows/sxt/process_sxt_tilt_series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def process_sxt_tilt_series_workflow(
6464
.where(DataCollection.dcg_id == DataCollectionGroup.id)
6565
.where(ProcessingJob.dc_id == DataCollection.id)
6666
.where(AutoProcProgram.pj_id == ProcessingJob.id)
67-
.where(ProcessingJob.recipe == "sxt-tomo-align")
67+
.where(ProcessingJob.recipe == "sxt-aretomo")
6868
).one()
6969
instrument_name = (
7070
murfey_db.exec(select(Session).where(Session.id == session_id))
@@ -93,7 +93,7 @@ def process_sxt_tilt_series_workflow(
9393
)
9494
stack_file.parent.mkdir(parents=True, exist_ok=True)
9595
zocalo_message = {
96-
"recipes": ["sxt-tomo-align"],
96+
"recipes": ["sxt-aretomo"],
9797
"parameters": {
9898
"txrm_file": tilt_series_info.txrm,
9999
"dcid": collected_ids[1].id,

tests/client/contexts/test_sxt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def test_sxt_context_txrm(
107107
json={
108108
"tag": "example",
109109
"source": str(tmp_path),
110-
"recipe": "sxt-tomo-align",
110+
"recipe": "sxt-aretomo",
111111
"experiment_type": "sxt",
112112
},
113113
headers={"Authorization": "Bearer "},

tests/workflows/sxt/test_process_sxt_tilt_series.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def set_up_db(murfey_db_session: Session):
3838
ProcessingJob,
3939
lookup_kwargs={
4040
"id": 1,
41-
"recipe": "sxt-tomo-align",
41+
"recipe": "sxt-aretomo",
4242
"dc_id": dc_entry.id,
4343
},
4444
)
@@ -92,7 +92,7 @@ def test_process_new_sxt_tilt_series(
9292
"manual_tilt_offset": -1,
9393
"node_creator_queue": "node_creator",
9494
},
95-
"recipes": ["sxt-tomo-align"],
95+
"recipes": ["sxt-aretomo"],
9696
},
9797
new_connection=True,
9898
)

0 commit comments

Comments
 (0)