databroker.Header.fields

Header.fields(self, stream_name=<class 'databroker.utils.ALL'>)[source]

Return the names of the fields (‘data keys’) in this run.

Parameters
stream_namestring or ALL, optional

Filter results by stream name (e.g., ‘primary’, ‘baseline’). The default, ALL, combines results from all streams.

Returns
fieldsset

See also

Header.devices()

Examples

Load the most recent run and list its fields.

>>> h = db[-1]
>>> h.fields()
{'eiger_stats1_total', 'eiger_image'}