prsctrl.prsctrl_interactive#

Run measurements in an interactive terminal session.

To run the interactive utility: ` ipython -i prctrl_interactive.py `

With dummy devices (for testing): ` ipython -i prctrl_interactive.py -- --dummy-devices `

Module attributes

DEFAULT_PLUGIN_DIR

Default directory user plugins are loaded from, may be overridden by the 'plugin_dir' config value

loaded_plugin_files

Plugin files that were loaded into the global namespace

power_calibration_db

Database storing power calibrations

sample_db

Database storing sample information

setup_db

Database storing measurement setup information

Functions

add_sample

Add a sample to the sample database and return it.

brightness_test

connect_device

Connect one of the global devices interactively, and store the selection in the config file.

exit_all_devices

Exit all connected devices in reverse-priority order via the device manager (e.g. via atexit).

frequency_scan

full_shutdown

Turn off all devices: shutter, lamps, mirror, power switches.

get_power_calibration

Get the active power calibration configured in the settings.

get_sample

Get a sample from the sample database.

get_setup_info

Get the active setup info from the setup database.

help

init

measure_ref_or_tra

Measure reflectance or transmittance with the primary lock-in

measure_ref_tra

Measure both reflectance and transmittance

measure_ref_tra_offsets

Measure both reflectance and transmittance

measure_reference_no_sample

measure_spectrum

measure_temp

merge_dicts

Recursively merge the dictionaries.

pump_power_calibration

Perform pump power calibration, plot results and interactively set method and name.

reload

Reload all plugins from the plugin directories into the global namespace.

Classes

PrsInteractiveSettings

Settings for the interactive shell, loaded from and saved to the config file.