Controller class for communicating with Andor Kymera spectrometers.
Project description
LPI Andor
Andor spectrometer controller built for the LPI group at EPFL.
Notes
Limitations
Can only be run from Windows machines at the moment.
Acquiring data
Background measurements are taken with the Spectrometer#background
method, and signals are taken with the Spectrometer#aquire
method.
Each returns a 1D Numpy array of counts. The wavelength for each index is stored in the Spectrometer.wavelengths
property.
The Spectrometer.wavelengths
property is reset any time the Spectrometer.center_wavelength
property is set, so be sure to save the
wavelength of previous scans before changing the center wavelength.
Spectrograph configuration
For properties specific to your spectrograph (e.g. Filters, read out rates, etc.), define their configuration in the enums
module.
Shutdown
When running Spectrometer#shutdown
method, the instance will block until the sensor temeprature has reached -15 C to prevent the sensor from heating too quickly. This can be overriden by calling Spectrometer#shutdown( safe = False )
or by setting the default exit behavior with the Spectrometer.exit_safe
property.
Modules
- spectrometer: Defines Spectrometer representing high level functionality of the spectrometer.
- enums: Enums representing the spectrometer configuration.
- measurement_parameters: Measurement parameters that are used to intialize the spectrometer.
Example
import time
import numpy as np
from lpi_andor import Spectrometer
# intialize spectrometer
spec = Spectrometer()
spec.temperature = -70
spec.enable_cooler()
# wait for temperature
while spec.temperature < 70:
time.sleep( 10 )
# setup measurement
# center: 800 nm
# 10 scans, each for 1s
spec.center_wavelength = 800
spec.acquisition_accumulate()
spec.accumulation_scans = 10
spec.exposure_time = 1
# take measurement
background = spec.background()
signal = spec.acquire()
# compile data
data = np.dstack( ( spec.wavelengths, background, signal ) )
print( data )
# shutdown
spec.shutdown()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file lpi-andor-0.0.3.post1.tar.gz
.
File metadata
- Download URL: lpi-andor-0.0.3.post1.tar.gz
- Upload date:
- Size: 5.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c122f62a86421eba359bae40bf27318b8550e27353c37eb055fa020472ab3168 |
|
MD5 | 84b269df52a536671cf55fa26995534a |
|
BLAKE2b-256 | f920f97da6868f736dce196462824698a13b0e34b907b378b96c9400de28ab2f |
File details
Details for the file lpi_andor-0.0.3.post1-py3-none-any.whl
.
File metadata
- Download URL: lpi_andor-0.0.3.post1-py3-none-any.whl
- Upload date:
- Size: 5.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa4aedb9b8992399306436c20d2d8fc0705441535055800762b0afe90344f1e4 |
|
MD5 | e16f766c3e860d69ca420203e4fe717a |
|
BLAKE2b-256 | b461980c2603483c610994359898f72e0b6080d9e2ca09ebce9091fcf49da9f5 |