Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Identify mismatched keys in "event_model.EventModelValidationError: These sets of keys must match:" #138

Open
jklynch opened this issue Jan 30, 2020 · 0 comments

Comments

@jklynch
Copy link
Contributor

jklynch commented Jan 30, 2020

It would be nice if this error message included a list of the mismatched keys:

File "/opt/bluesky_workers/suitcase_worker.py", line 107, in event
event = descriptor_bundle.compose_event(**new_doc)
File "/opt/conda_envs/analysis-2019-3.0-rsoxs/lib/python3.7/site-packages/event_model/init.py", line 1293, in compose_event
data.keys(), timestamps.keys(), descriptor['data_keys'].keys()))
event_model.EventModelValidationError: These sets of keys must match:
event['data'].keys(): dict_keys(['Wide Angle CCD Detector_cam_acquire_time', 'Wide Angle CCD Detector_cam_bin_x', 'Wide Angle CCD Detector_cam_bin_y', 'Wide Angle CCD Detector_cam_min_x', 'Wide Angle CCD Detector_cam_min_y', 'Wide Angle CCD Detector_cam_model', 'Wide Angle CCD Detector_cam_shutter_close_delay', 'Wide Angle CCD Detector_cam_shutter_open_delay', 'Wide Angle CCD Detector_cam_temperature', 'Wide Angle CCD Detector_cam_temperature_actual', 'Wide Angle CCD Detector_cam_trigger_mode', 'Wide Angle CCD Detector_cam_adc_speed', 'Wide Angle CCD Detector_cam_hot_side_temp', 'Wide Angle CCD Detector_cam_sync', 'Wide Angle CCD Detector_image', 'Wide Angle CCD Detector_stats1_total'])
event['timestamps'].keys(): dict_keys(['Wide Angle CCD Detector_cam_acquire_time', 'Wide Angle CCD Detector_cam_bin_x', 'Wide Angle CCD Detector_cam_bin_y', 'Wide Angle CCD Detector_cam_min_x', 'Wide Angle CCD Detector_cam_min_y', 'Wide Angle CCD Detector_cam_model', 'Wide Angle CCD Detector_cam_shutter_close_delay', 'Wide Angle CCD Detector_cam_shutter_open_delay', 'Wide Angle CCD Detector_cam_temperature', 'Wide Angle CCD Detector_cam_temperature_actual', 'Wide Angle CCD Detector_cam_trigger_mode', 'Wide Angle CCD Detector_cam_adc_speed', 'Wide Angle CCD Detector_cam_hot_side_temp', 'Wide Angle CCD Detector_cam_sync', 'Wide Angle CCD Detector_image', 'Wide Angle CCD Detector_stats1_total'])
descriptor['data_keys'].keys(): dict_keys(['Wide Angle CCD Detector_cam_acquire_time', 'Wide Angle CCD Detector_cam_bin_x', 'Wide Angle CCD Detector_cam_bin_y', 'Wide Angle CCD Detector_cam_min_x', 'Wide Angle CCD Detector_cam_min_y', 'Wide Angle CCD Detector_cam_model', 'Wide Angle CCD Detector_cam_shutter_close_delay', 'Wide Angle CCD Detector_cam_shutter_open_delay', 'Wide Angle CCD Detector_cam_temperature', 'Wide Angle CCD Detector_cam_temperature_actual', 'Wide Angle CCD Detector_cam_trigger_mode', 'Wide Angle CCD Detector_cam_adc_speed', 'Wide Angle CCD Detector_cam_hot_side_temp', 'Wide Angle CCD Detector_cam_sync', 'Wide Angle CCD Detector_image', 'Wide Angle CCD Detector_stats1_total', 'Wide Angle CCD Detector_image_is_background_subtracted'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant