AFL.automation.instrument.SINQSANS#

Classes

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

SICSTelnetClient(host, port, login)

SINQSANS([overrides])

ScatteringInstrument()

class AFL.automation.instrument.SINQSANS.SINQSANS(overrides=None)[source]#
defaults = {'absolute_calibration_factor': 1, 'data_path': '/home/afl642', 'empty transmission': 1, 'exposure': 1.0, 'num_pixel1': 128, 'num_pixel2': 128, 'pixel1': 0.075, 'pixel2': 0.075, 'reduced_data_dir': '/mnt/home/chess_id3b/beaucage/211012-data', 'sics_host': 'sans.psi.ch', 'sics_port': 1301, 'transmission strategy': 'sum', 'user_login': 'User 22lns1'}#
__init__(overrides=None)[source]#

connect to spec

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.

setReducedDataDir(path)[source]#
measureTransmission(set_empty_transmission=False, return_full=False)[source]#
lastMeasuredTransmission()[source]#
getExposure()[source]#

get the currently set exposure time

getFilename()[source]#

get the currently set file name

getLastFilePath(**kwargs)[source]#

get the currently set file name

setExposure(exposure)[source]#
setFilename(name)[source]#
getElapsedTime()[source]#
readH5(filepath, update_config=False, **kwargs)[source]#
getData(**kwargs)[source]#
getAutoExposure(short_count_dur=2, desired_counts=1000000)[source]#
expose(name=None, exposure=None, block=True, reduce_data=True, measure_transmission=True, save_nexus=True)[source]#
blockForIdle()[source]#
blockForCompleted(timeout=1800)[source]#
getStatus()[source]#
isCounting()[source]#
status()[source]#
class AFL.automation.instrument.SINQSANS.SICSTelnetClient(host, port, login)[source]#
__init__(host, port, login)[source]#
ask_param(param, tries=0)[source]#
set_param(param, val)[source]#
send_cmd(cmd)[source]#
success()[source]#
flush_buffer()[source]#