File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
src/murfey/instrument_server Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ def check_token(session_id: MurfeySessionID):
138138
139139
140140@router .post ("/sessions/{session_id}/multigrid_watcher" )
141- def start_multigrid_watcher (
141+ def setup_multigrid_watcher (
142142 session_id : MurfeySessionID , watcher_spec : MultigridWatcherSpec
143143):
144144 if controllers .get (session_id ) is not None :
@@ -183,6 +183,13 @@ def start_multigrid_watcher(
183183 controllers [session_id ]._multigrid_watcher_finalised , final = True
184184 )
185185 watchers [session_id ].start ()
186+
187+
188+ @router .post ("/sessions/{session_id}/start_multigrid_watcher" )
189+ def start_multigrid_watcher (session_id : MurfeySessionID ):
190+ if watchers .get (session_id ) is None :
191+ return {"success" : False }
192+ watchers [session_id ].start ()
186193 return {"success" : True }
187194
188195
You can’t perform that action at this time.
0 commit comments