Introduction of the Sirepo-Bluesky interface and its application to the optimization problems

2020 
Simulation of beamlines at light sources is an essential part of their design and commissioning. Such simulations can be performed by the Synchrotron Radiation Workshop (SRW) code, which now has a user-friendly, browser- based interface, Sirepo. The simulations, utilizing a concept of a "virtual" beamline, can aim to optimize the specific aspects of a beamline, such as maximization of the flux, minimization of the beam size, etc. These tasks are also performed at the physical beamlines using various alignment procedures. At NSLS-II these procedures are executed by the Bluesky data collection framework. The Sirepo-Bluesky interface leverages both systems to allow for the multiparameter optimization of the X-ray source and beamline optics with the power of bluesky's plans used for the daily experiments at NSLS-II, and databroker's capabilities to retrieve the captured data and metadata to perform further analysis. Such a "collaboration" between the frameworks can be used to store the simulated results in the same database as for the experimental data, and seamlessly apply the same analysis pipelines, demonstrated in recent publications. In a simulation, multiple parameters can be changed at once and be stored as a snapshot of the "virtual" beamline in time along with the corresponding results of the simulations. A global optimization algorithm (e.g., a genetic algorithm) can then utilize the data to find the best configuration for the desired outcome. Such an optimization procedure can be seamlessly applied to the real hardware by substituting the virtual motors and detectors by the real ones.
    • Correction
    • Source
    • Cite
    • Save
    • Machine Reading By IdeaReader
    0
    References
    1
    Citations
    NaN
    KQI
    []