Skip to content

Commit 4fa863b

Browse files
committed
Added temporary logs
1 parent 4eb1e7b commit 4fa863b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/murfey/workflows/register_data_collection_group.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def run(
3030
visit_number=message["visit_number"],
3131
db=ISPyBSession(),
3232
)
33+
logger.info(f"ISPyB session ID is {ispyb_session_id}")
3334

3435
if dcg_murfey := murfey_db.exec(
3536
select(MurfeyDB.DataCollectionGroup)
@@ -50,20 +51,23 @@ def run(
5051
experimentType=message["experiment_type"],
5152
experimentTypeId=message["experiment_type_id"],
5253
)
53-
54+
logger.info("Inserting new entry into data collection group")
5455
dcgid = _transport_object.do_insert_data_collection_group(record).get(
5556
"return_value", None
5657
)
58+
logger.info(f"dcgid is {dcgid}")
5759

5860
atlas_record = ISPyBDB.Atlas(
5961
dataCollectionGroupId=dcgid,
6062
atlasImage=message.get("atlas", ""),
6163
pixelSize=message.get("atlas_pixel_size", 0),
6264
cassetteSlot=message.get("sample"),
6365
)
66+
logger.info("Insert new entry into atlas")
6467
atlas_id = _transport_object.do_insert_atlas(atlas_record).get(
6568
"return_value", None
6669
)
70+
logger.info(f"atlas_id is {atlas_id}")
6771

6872
murfey_dcg = MurfeyDB.DataCollectionGroup(
6973
id=dcgid,

0 commit comments

Comments
 (0)