-
Notifications
You must be signed in to change notification settings - Fork 12
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
KeyError: 'energy' during restore_energy(orientation, diffractometer) #216
Comments
Should hklpy ignore the |
Might be trickier than it seems to ignore the Lines 300 to 303 in c99a17d
|
Maybe this means we should reconsider how to store the orientation so that the details are secure against this type of reconfiguration. |
Should be considered with #189. |
|
For now, raise an error when a key is missing. |
@gfabbris reported was raised
KeyError: 'energy'
by this sequence:On inspection of the
orientation
object, theenergy
key is missing:The diffractometer was configured with
fourc.energy.kind = "omitted"
.The text was updated successfully, but these errors were encountered: