dragonfly.implementations.esr_measurement module¶
Some template vars¶
Members: ESR_Measurement Functions: Classes:
A service for interfacing with the ESR
Summary¶
-
class
dragonfly.implementations.esr_measurement.ESR_Measurement(**kwargs)¶ Bases:
dragonfly.implementations.esr_measurement.ESR_MeasurementOperate the ESR system to measure the B-field off-axis. Methods are sorted by order of call within run_scan.
Keyword Arguments: - name (str) – unique identifier across all dripline services (used to determine routing key)
- calibration (str||dict) – string use to process raw get result (with .format(raw)) or a dict to use for the same purpose where raw must be a key
- get_on_set (bool) – flag to toggle running ‘on_get’ after each ‘on_set’
-
capture_settings()¶ Record current status of the insert, lockin, and sweeper before ESR scan FIXME: Endpoints should either be locked here or already
-
check_endpoint(endptname, val)¶ Sets endpoint to value
endptname (str): name of endpoint val (int,float,str,unicode): value of endpoint to set
-
configure_instruments()¶ Configure instruments to default settings.
-
handle_request(channel, method, properties, request)¶
-
is_locked¶
-
lock(lockout_key=None, *args, **kwargs)¶
-
lockout_key¶
-
on_cmd(*args, **kwargs)¶ WARNING! if you override this method, you must ensure you deal with lockout properly
-
on_config(attribute, value=None)¶ configure a property again
WARNING! if you override this method, you must ensure you deal with lockout properly
-
ping(*args, **kwargs)¶ ignore all details and respond with an empty message
-
pull_lockin_data(key)¶ Call grab_data method of lockin_interface give key
key (): #TODO_DOC
-
raw_get_endpoint(endptname, **kwargs)¶ Get raw value of endpoint
endptname (str): name of endpoint
-
reset_configure()¶ Immutable “safe” configuration for switches and sweeper for after ESR scan
-
run_scan(config_instruments=True, coils=[1, 2, 3, 4, 5], n_fits=2, **kwargs)¶ Wraps all ESR functionality into single method call with tunable arguments. This function should interface with run_scripting through the action_esr_run method.
config_instruments (bool): flag to configure instruments coils (list): list of coil numbers (int) for ESR scan n_fits (int): number of fits to perform
-
save_data()¶ Save data to output json file
-
set_condition(*args, **kwargs)¶ To actually do something inside a class, the set_condition should be implemented in the class itself.
-
single_measure(coil)¶ Communicate with lockin, sweeper, and switches to execute single ESR coil scan. Data is retrieved but not analyzed.
-
unlock(*args, **kwargs)¶
End of modules condition
Data:
End of data condition