Open axelboc opened 4 weeks ago
I tried to recreate this issue and I could only detect it for the Energy
and Transmission
(for Transmission
it happened once in many attempts). Could you confirm this or have you seen it on the other parameters as well?
For Wavelength
and Resolution
I could observe other (maybe related) issues (see #1436 and mxcube/mxcubecore#1037)
Indeed, I confirm your observations. Only Detector
works as expected.
Other issues:
Wavelength
don't seem to match those in the log message:Resolution
log message says "Invalid value" without providing limitsI agree that the log message could be improved in this case. These are slightly modified errors, we get from mxcubecore
.
For the first issue: This is the value we would set Energy
to, when we modify Wavelength
. My understanding is that Wavelength
has no limits, instead we check if the supposed Energy
value is acceptable and the event called from this is the one that returns the error
It seems that the initial issue came from a GreenletExit
exception that was not correctly handled. I made a fix for this in mxcubecore
(see mxcube/mxcubecore#1038) which has been merged.
Unfortunately the issues regarding the log message need a little bit more of investigation. I propose to open a new issue for them and close this one?
Maybe few explanation how and why energy, wavelength, resolution and detector distance "motors" are connected
I will have a deeper look on the EnergyMockup and the energy and resolution adapters.
@walesch-yan Did you also have a chance to look if the limits of the energy mockup change to something other than Tuple[float, float]
? That is why one would get Exception 1 validation error for FloatValueModel value value is not a valid float (type=type_error.float
. Or was that because of the actual value being a GreenletExit
perhaps :) ?
@marcus-oscarsson From my observations, we got this because the actual value was a GreenletExit
. After handling this specific case, I did not get this error message anymore
Ok, thanks for the update
I noticed this while working on #1432 (i.e. it was broken before) with the mock beamline environment.
The full error displayed as beamline attribute
message
in the UI:Exception 1 validation error for FloatValueModel value value is not a valid float (type=type_error.float)
The full back-end stacktrace is too long to paste here.
The only way to recover is to restart the server. Otherwise, here is what the app looks like if I reload the page: