Skip to content

Commit 490a205

Browse files
committed
Add atlas registration to multigrid controller
1 parent e4cb4ce commit 490a205

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/murfey/client/multigrid_control.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,12 +386,23 @@ def _start_dc(self, json, from_form: bool = False):
386386
"tag": str(source),
387387
}
388388
requests.post(url, json=dcg_data)
389+
389390
elif isinstance(context, SPAContext) or isinstance(context, SPAModularContext):
390391
url = f"{str(self._environment.url.geturl())}/visits/{str(self._environment.visit)}/{self.session_id}/register_data_collection_group"
391392
dcg_data = {
392393
"experiment_type": "single particle",
393394
"experiment_type_id": 37,
394395
"tag": str(source),
396+
"atlas": (
397+
str(self._environment.samples[source].atlas)
398+
if self._environment.samples.get(source)
399+
else ""
400+
),
401+
"sample": (
402+
self._environment.samples[source].sample
403+
if self._environment.samples.get(source)
404+
else None
405+
),
395406
}
396407
capture_post(url, json=dcg_data)
397408
if from_form:

0 commit comments

Comments
 (0)