Open shamin-slac opened 3 months ago
@shamin-slac @phys-cgarnier There is simple quad scan code in the emittance gist, see below. There is already a scan function in the magnet class. The beam size function would be replaced w/ Chris' code.
# create some scan: quad between -6 and 0
scan_settings = [
{"QE04": -6}, # step 1
{"QE04": -3}, # step 2
{"QE04": 0}, # step 3
]
# start scan, we call the 'acquire_images' function after each step
magnets.scan(scan_settings=scan_settings, function=acquire_images)
beam_sizes = get_beamsize(image_file = image_file_locations) #x_rms, y_rms, x_stdz, y_stdz
@phys-cgarnier , please @ Alex in after this comment and add her as assignee on the issue (I don't know her github name). I think for the bmag and twiss parts of this, she can do the following:
beam
or data_analysis
. Maybe it can be a transverse.py
file instead of folder in beam
.data_analysis
, please rename the folder to data
(I've been meaning to do this).beam.transverse.twiss
or data.transverse.twiss
My username is aikuma14, can I be added as an assignee?
Look at possibility moving bmag and twiss from Williams BMAD model to a more general location.