Open jilavsky opened 3 weeks ago
I commented out some of the lines and got other errors, I think this code has not been finished when we were converting to use lineup2. usaxs_motor_devices.py has TODO in TunableEpicsMotor2 code which we did not finish that we need to engineer return back of various results from lineup2. We need value which previously was called .tuner.PeakDetected and pass back position, FWHM, etc. Unluckily, this is slightly beyond my league for now.
We recasted the tuning a lot and now I am running in issues. I am testing without beam for now. RE(tune_mr()) results in error:
lines 106 and 107 are:
which object is NoneType here?
Same "if" passes in lines 74/75 in pre_tune_hook, which si defined equivalent way in stages.py :
While the post_tune_hook code for mr (in stages.py) is:
this code in mr_pretune_hook() works fine:
so m_stage.r.name and m_stage.r.position should exist.