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()
Release files for lpi-andor 0.0.3.post1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lpi-andor-0.0.3.post1.tar.gz | 5.7 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lpi_andor-0.0.3.post1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 MB
Release files / lpi-andor-0.0.3.post1.tar.gz
| Download URL | lpi-andor-0.0.3.post1.tar.gz |
|---|---|
| Size | 5.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c122f62a86421eba359bae40bf27318b8550e27353c37eb055fa020472ab3168
|
|
BLAKE2b-256 checksum How to use checksums |
f920f97da6868f736dce196462824698a13b0e34b907b378b96c9400de28ab2f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / lpi_andor-0.0.3.post1-py3-none-any.whl
| Download URL | lpi_andor-0.0.3.post1-py3-none-any.whl |
|---|---|
| Size | 5.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fa4aedb9b8992399306436c20d2d8fc0705441535055800762b0afe90344f1e4
|
|
BLAKE2b-256 checksum How to use checksums |
b461980c2603483c610994359898f72e0b6080d9e2ca09ebce9091fcf49da9f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|