AFL.automation.instrument.APSUSAXS#

Classes

APSUSAXS([overrides])

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

class AFL.automation.instrument.APSUSAXS.APSUSAXS(overrides=None)[source]#
defaults = {'active_holder': '6A', 'data_autocollection_permit_pv': 'usxLAX:AutoCollectionPermit', 'datadir_pv': 'usxLAX:sampleDir', 'file_blank_check_key': 'QRSData', 'file_data_check_key': 'CalibratedData', 'file_read_max_retries': 20, 'file_read_retry_sleep': 15.0, '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!!', 'next_fs_order_n_pv': 'usxLAX:USAXS:FS_OrderNumber', '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, 'userdir_pv': 'usxLAX:userDir'}#
__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.

getFilenamePrefix()[source]#

get the currently set file name prefix

setFilenamePrefix(prefix)[source]#

set the currently set file name prefix

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, read_USAXS=True, read_SAXS=True)[source]#
block_for_run_finish()[source]#
getRunStatus()[source]#
setPosition(plate, row, col, x_offset=0, y_offset=0)[source]#
getRunInProgress()[source]#
status()[source]#