Skip to content

Instantly share code, notes, and snippets.

@bruceravel
Created July 23, 2025 13:34
Show Gist options
  • Select an option

  • Save bruceravel/2890cfe9a8962232d646ee9cf9f8bb6f to your computer and use it in GitHub Desktop.

Select an option

Save bruceravel/2890cfe9a8962232d646ee9cf9f8bb6f to your computer and use it in GitHub Desktop.
example metadata from a record at BMM
{'start': {'XDI': {'Beamline': {'collimation': 'paraboloid mirror, 5 nm Rh on '
'30 nm Pt',
'focusing': 'not in use',
'harmonic_rejection': 'flat mirror, Pt stripe, '
'pitch = 7.0 mrad '
'relative to beam',
'name': 'BMM (06BM) -- Beamline for Materials '
'Measurement (NIST)',
'software': 'Bluesky 1.13.0a4, Ophyd 1.9.0, '
'DataBroker 2.0.0b45, Python '
'3.11.6, 2024-2.3-py311-tiled',
'xray_source': 'NSLS-II three-pole wiggler'},
'Column': {},
'Detector': {'I0': '25 cm N2, NSLS2 IC',
'Ir': '25 cm N2, NSLS2 IC',
'It': '25 cm N2, NSLS2 IC',
'deadtime_correction': 'Xspress3',
'fluorescence': 'Hitachi Vortex ME7 (7-element '
'silicon drift)'},
'Element': {'edge': 'L3',
'reference': 'U',
'reference_material': 'UO2',
'symbol': 'U'},
'Facility': {'GUP': 318519,
'SAF': 316542,
'cycle': '2025-2',
'energy': '3 GeV',
'name': 'NSLS-II'},
'Mono': {'angle_offset': 16.0812487,
'd_spacing': '3.1355285',
'direction': 'increasing in energy',
'encoder_resolution': 5e-06,
'name': 'Si(111)',
'scan_mode': 'pseudo channel cut',
'scan_type': 'step'},
'Sample': {'name': 'glass (visual)',
'prep': '2 abs. lengths in PEG pellet. Double '
'kapton containment.'},
'Scan': {'edge_energy': 17168.0,
'experimenters': 'Malin Dixon Wilkins, John '
'Bussey, John Mccloy, Gavin '
'Mccloy, Seonjin Kim, Maxwell '
'Mccloy, John McCloy'},
'_comment': ['Welcome to BMM'],
'_mode': ['fluorescence'],
'_pccenergy': '17428.40',
'_user': {'startdate': '2025-07-08'},
'_xrffile': 'U_2UO3-75NaCa 6h_2025-07-09T00-06-23.xrf',
'_xrfimage': 'U_2UO3-75NaCa 6h_XRF_2025-07-09T00-06-23.png'},
'cycle': '2025-2',
'data_session': 'pass-318519',
'detectors': ['7-element SDD'],
'hints': {'dimensions': [[['time'], 'primary']]},
'num_intervals': 0,
'num_points': 1,
'plan_args': {'delay': None,
'detectors': ['GeneratedXspress3Detector(channels=(GeneratedXspress3Channel(channel_number=1, '
'mcaroi_numbers=(1, 2, 3, 4, 5, 6, 7, '
'8, 9, 10, 11, 12, 13, 14, 15, 16, 17, '
'18, 19, '
'20)),GeneratedXspress3Channel(channel_number=2, '
'mcaroi_numbers=(1, 2, 3, 4, 5, 6, 7, '
'8, 9, 10, 11, 12, 13, 14, 15, 16, 17, '
'18, 19, '
'20)),GeneratedXspress3Channel(channel_number=3, '
'mcaroi_numbers=(1, 2, 3, 4, 5, 6, 7, '
'8, 9, 10, 11, 12, 13, 14, 15, 16, 17, '
'18, 19, '
'20)),GeneratedXspress3Channel(channel_number=4, '
'mcaroi_numbers=(1, 2, 3, 4, 5, 6, 7, '
'8, 9, 10, 11, 12, 13, 14, 15, 16, 17, '
'18, 19, '
'20)),GeneratedXspress3Channel(channel_number=5, '
'mcaroi_numbers=(1, 2, 3, 4, 5, 6, 7, '
'8, 9, 10, 11, 12, 13, 14, 15, 16, 17, '
'18, 19, '
'20)),GeneratedXspress3Channel(channel_number=6, '
'mcaroi_numbers=(1, 2, 3, 4, 5, 6, 7, '
'8, 9, 10, 11, 12, 13, 14, 15, 16, 17, '
'18, 19, '
'20)),GeneratedXspress3Channel(channel_number=7, '
'mcaroi_numbers=(1, 2, 3, 4, 5, 6, 7, '
'8, 9, 10, 11, 12, 13, 14, 15, 16, 17, '
'18, 19, 20))))'],
'num': 1},
'plan_name': 'count xafs_metadata XRF',
'plan_type': 'generator',
'proposal': {'pi_name': 'John McCloy',
'proposal_id': '318519',
'title': 'Elucidating U and Th speciation in glasses '
'relevant to immobilization of legacy '
'radioactive tank wastes at the Hanford site',
'type': 'General User'},
'scan_id': 32326,
'start_datetime': '2025-07-08T07:20:24.511903',
'time': 1752033983.630825,
'uid': 'c6c84b2e-0b5f-4b92-9f7c-0962ba593b17',
'username': 'bravel'},
'stop': {'exit_status': 'success',
'num_events': {'baseline': 2, 'primary': 1},
'reason': '',
'run_start': 'c6c84b2e-0b5f-4b92-9f7c-0962ba593b17',
'time': 1752033985.6856792,
'uid': '8d87f46f-dfa4-44fb-acf9-fc747762cfad'},
'summary': {'datetime': datetime.datetime(2025, 7, 9, 4, 6, 23, 630825, tzinfo=datetime.timezone.utc),
'duration': 2.054854154586792,
'plan_name': 'count xafs_metadata XRF',
'scan_id': 32326,
'stream_names': ['baseline', 'primary'],
'timestamp': 1752033983.630825,
'uid': 'c6c84b2e-0b5f-4b92-9f7c-0962ba593b17'}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment