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

Failed to read BestEffortCallback peaks #94

Open
gfabbris opened this issue Mar 7, 2021 · 0 comments
Open

Failed to read BestEffortCallback peaks #94

gfabbris opened this issue Mar 7, 2021 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@gfabbris
Copy link
Contributor

gfabbris commented Mar 7, 2021

During the measurements we came along this error during a macro:

<ipython-input-53-3d84b7bb59aa> in moveWL3()
     83 
     84     yield from mv(energy, _energy)
---> 85     yield from align_mono()
     86     yield from align_pr(_energy, _offset)
     87 

<ipython-input-53-3d84b7bb59aa> in align_mono()
     17     # Scan thf2, move to max
     18     yield from lup(mono.thf2, -6, 6, 40, 0.3)
---> 19     yield from maxi(mono.thf2)
     20 
     21     # Scan chi2, move to cen

~/.ipython/profile_bluesky/startup/instrument/plans/center_maximum.py in maxi(positioner, detector)
     66                             "1 detector was plotted")
     67         else:
---> 68             pos = peaks['max'][list(peaks['cen'].keys())[0]][0]
     69     else:
     70         pos = peaks['max'][detector][0]

IndexError: list index out of range

This plan (moveWL3()) was ran several times during the week and this issue never came up. I also ran the same scans again (both RE(maxi(mono.thf2)) and moveWL3()) right after the error, and it was not reproduced.

My guess is that the fitting in the BestEffortCallback.peaks was not done when pos = peaks['max'][list(peaks['cen'].keys())[0]][0] was called. But not sure if the RE moves on even if the BestEffortCallback is not done.

@gfabbris gfabbris self-assigned this Mar 26, 2021
@gfabbris gfabbris added the bug Something isn't working label Mar 26, 2021
@gfabbris gfabbris added this to the 2021-2 operations milestone Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant