Right now the Transfocator class only returns solutions for the current energy. It would be nice if you could enter a specific energy:
transfocator.find_best_combo(energy=8.5) # In keV
Implementation
The IOC does have a requested energy field, this changes the REQ_FOCUS PV of each lens. We could have the Calculator object work on simpler Lens data structures that are filled either with live or requested focus values.
We would have to include some context to make sure that the requested energy is not changed by multiple users during a calculation.
Request
Right now the Transfocator class only returns solutions for the current energy. It would be nice if you could enter a specific energy:
Implementation
The IOC does have a requested energy field, this changes the
REQ_FOCUS
PV of each lens. We could have theCalculator
object work on simpler Lens data structures that are filled either with live or requested focus values.We would have to include some context to make sure that the requested energy is not changed by multiple users during a calculation.