File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515
1616try :
1717 from smartem_backend .api_client import EntityConverter
18- from smartem_common .schemas import AcquisitionData
18+ from smartem_common .schemas import AcquisitionData , MicroscopeData
1919
2020 SMARTEM_ACTIVE = True
2121except ImportError :
@@ -160,8 +160,13 @@ async def setup_multigrid_watcher(
160160 if SMARTEM_ACTIVE and machine_config .smartem_api_url :
161161 log .info ("registering an acquisition with smartem" )
162162 try :
163+ microscope_data = MicroscopeData (instrument_id = instrument_name )
163164 acquisition_data = EntityConverter .acquisition_to_request (
164- AcquisitionData (name = visit )
165+ AcquisitionData (
166+ name = visit ,
167+ microscope_data = microscope_data ,
168+ working_dir = str (secure_path (watcher_spec .source / visit )),
169+ )
165170 )
166171 async with clientsession .post (
167172 f"{ machine_config .smartem_api_url } /acquisitions" ,
You can’t perform that action at this time.
0 commit comments