We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc652ba commit 8f38607Copy full SHA for 8f38607
1 file changed
src/murfey/server/api/instrument.py
@@ -140,13 +140,11 @@ async def setup_multigrid_watcher(
140
141
142
@router.post("/sessions/{session_id}/start_multigrid_watcher")
143
-async def start_multigrid_watcher(
144
- session_id: MurfeySessionID, process: bool = True, db=murfey_db
145
-):
+async def start_multigrid_watcher(session_id: MurfeySessionID, db=murfey_db):
146
data = {}
147
- instrument_name = (
148
- db.exec(select(Session).where(Session.id == session_id)).one().instrument_name
149
- )
+ session = db.exec(select(Session).where(Session.id == session_id)).one()
+ process = session.process
+ instrument_name = session.instrument_name
150
machine_config = get_machine_config(instrument_name=instrument_name)[
151
instrument_name
152
]
0 commit comments