From 5bff322eec751038dcb61ad399de22519a42f1db Mon Sep 17 00:00:00 2001 From: Daniel Hatton Date: Tue, 22 Sep 2026 10:22:07 +0100 Subject: [PATCH] in the atlas context, when using serialem poke the atlas registration endpoint, as you do in the epu case, but do not register the grid as at this point in the workflow the square locations are not known --- src/murfey/client/contexts/atlas.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/murfey/client/contexts/atlas.py b/src/murfey/client/contexts/atlas.py index 04869e89e..85f176616 100644 --- a/src/murfey/client/contexts/atlas.py +++ b/src/murfey/client/contexts/atlas.py @@ -78,6 +78,30 @@ def post_transfer_serialem( logger.info( f"Registered data collection group for atlas {str(transferred_file.stem)!r}" ) + capture_post( + base_url=str(environment.url.geturl()), + router_name="session_control.spa_router", + function_name="register_atlas", + token=self._token, + instrument_name=environment.instrument_name, + session_id=environment.murfey_session, + data={ + "name": f"{environment.visit}-slot-{sample}", + "acquisition_uuid": environment.acquisition_uuid, + "register_grid": False, + "tag": str(transferred_file.parent / transferred_file.stem), + "storage_folder": str( + _atlas_destination( + environment, + source, + Path(self._machine_config.get("rsync_basepath", "")), + ) + / "atlas" + if source + else "" + ), + }, + ) def post_transfer_epu( self,