Skip to content

Commit a2bd08f

Browse files
authored
Merge pull request #15 from genematx/add-uid-metadata
Include scan uid in the exported metadata
2 parents b2fbea0 + bff46aa commit a2bd08f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

metadata_exporter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def export_metadata_task(run_client):
110110
user_note = str(run_client.start.get("user_note", ""))
111111
nxfile.entry.note = nx.NXnote()
112112
nxfile.entry.note.description = nx.NXfield(user_note)
113+
nxfile.entry.note.bluesky_uid = nx.NXfield(run_client.start['uid'])
113114

114115
# Custom metadata for XY scans only -- include arrays of scanned positions
115116
if (user_note == "XY scan") and (run_client.start.get("plan_name") == "grid_scan"):

0 commit comments

Comments
 (0)