AFL.automation.instrument.APSUSAXS#

Classes

APSUSAXS([overrides])

Driver(name[, defaults, overrides, useful_links])

class AFL.automation.instrument.APSUSAXS.APSUSAXS(overrides=None)[source]#
defaults = {'USAXS_mode': 'Flyscan', 'USAXS_npts': 400, 'USAXS_signal_cutoff': 1.05, 'active_holder': '6A', 'empty_scan_title': '', 'instrument_running_pv': '9idcLAX:dataColInProgress', 'instrument_status_pv': '9idcLAX:state', 'magic_filename_key': '!!AFLREPLACEME!!', 'magic_project_key': '!!AFL-SETNAME!!', 'magic_xpos_key': '!!AFLXPOS!!', 'magic_ypos_key': '!!AFLYPOS!!', 'platemap': {'6A': {'SlotA': {'x0': 0, 'x_per_y_skew': 0.5, 'x_step': 9, 'y0': 0, 'y_per_x_skew': -0.3333333333333333, 'y_step': 9}, 'SlotB': {'x0': -150, 'x_per_y_skew': 1, 'x_step': 9, 'y0': -150, 'y_per_x_skew': -0.6666666666666666, 'y_step': 9}, 'SlotC': {'x0': 150, 'x_per_y_skew': -8, 'x_step': 9, 'y0': 150, 'y_per_x_skew': 5.333333333333333, 'y_step': 9}}}, 'run_initiate_pv': '9idcLAX:AutoCollectionStart', 'sample_thickness': 1.58, 'script_file': 'AFL.mac', 'script_name_pv': '9idcLAX:AutoCollectionStrInput', 'script_path': '/mnt/share1/USAXS_data/2022-06/', 'script_template_file': 'AFL-template.mac', 'script_write_cooldown': 1}#
__init__(overrides=None)[source]#

connect to usaxs via EPICS

pre_execute(**kwargs)[source]#

Executed before each call to execute

All of the kwargs passed to execute are also pass to this method. It is expected that this method be overridden by subclasses.

getFilename()[source]#

get the currently set file name

setFilename(name)[source]#
getProject()[source]#

get the currently set file name

setProject(name)[source]#
expose(name=None, block=True, reduce_USAXS=True, reduce_WAXS=True)[source]#
block_for_run_finish()[source]#
getRunStatus()[source]#
setPosition(plate, row, col, x_offset=0, y_offset=0)[source]#
getRunInProgress()[source]#
status()[source]#