bluesky / hklpy

Diffractometer computation library with ophyd pseudopositioner support
https://blueskyproject.io/hklpy
BSD 3-Clause "New" or "Revised" License
2 stars 11 forks source link

BUG: run_orientation_info #239

Closed prjemian closed 2 years ago

prjemian commented 2 years ago

While executing: https://github.com/bluesky/hklpy/blob/24fc104b4b2335532203742a0ff9829195d60499/hkl/util.py#L301 has a KeyError from a fly scan:

File ~/micromamba/envs/dev-hklpy/lib/python3.9/site-packages/bluesky_live/conversion.py:232, in documents_to_xarray_config(object_name, start_doc, stop_doc, descriptor_docs, get_event_pages, filler, get_resource, lookup_resource_for_datum, get_datum_pages, include, exclude, sub_dict)
    229 data_arrays = {}
    231 # Make DataArrays for configuration data.
--> 232 config = descriptor["configuration"][object_name]
    233 data_keys = config["data_keys"]
    234 for key in data_keys:

KeyError: 'scan_flyer'

This issue discovered while investigating: