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 directory user plugins are loaded from, may be overridden by the 'plugin_dir' config value |
|
Plugin files that were loaded into the global namespace |
|
Database storing power calibrations |
|
Database storing sample information |
|
Database storing measurement setup information |
Functions
Add a sample to the sample database and return it. |
|
Connect one of the global devices interactively, and store the selection in the config file. |
|
Exit all connected devices in reverse-priority order via the device manager (e.g. via atexit). |
|
Turn off all devices: shutter, lamps, mirror, power switches. |
|
Get the active power calibration configured in the settings. |
|
Get a sample from the sample database. |
|
Get the active setup info from the setup database. |
|
Measure reflectance or transmittance with the primary lock-in |
|
Measure both reflectance and transmittance |
|
Measure both reflectance and transmittance |
|
Recursively merge the dictionaries. |
|
Perform pump power calibration, plot results and interactively set method and name. |
|
Reload all plugins from the plugin directories into the global namespace. |
Classes
Settings for the interactive shell, loaded from and saved to the config file. |