A Python package useful to convert thermometer voltage to temperature
Project description
G31_thermometry
A Python package useful to convert thermometer readout voltage to temperature for the G31 Cosmology Group at La Sapienza University of Rome.
Supported thermometers
- Lakeshore DT670 D6068043
How to add new thermometers
For now it is possible to add only Lakeshore thermometer calibration files, just go to Lakeshore website, insert the serial number of a thermometer and download the zip file. Extract the zip file and copy/paste the extracted directory as a subfolder of thermometer model directory.
How to install
From ipython:
pip install G31-thermometry
Example
In this example we define a DT670 thermometer with serial number D6068043 and plot its calibration curve.
import G31_thermometry as G31t
DT670 = G31t.Thermometer(model='DT670', serial_no='D6068043')
DT670.plotCalibrationCurve()
The calibration curve is shown below.
With the following code instead we want to convert measured voltages into temperatures.
import G31_thermometry as G31t
import numpy as np
DT670 = G31t.Thermometer(model='DT670', serial_no='D6068043')
voltage = np.array([0.5 , 0.625, 0.75 , 0.875, 1. ])
DT670.temperature()
Output (in kelvin):
np.array([324.73716731, 270.61138912, 214.82655846, 156.39544034,
92.6566496 ])
Updates
- 22/07/2022: added DT670 - D6068043
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
Hashes for G31_thermometry-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4726d1362ce0465bac66ea3175d149388bc9237b4531f0c593d0693293ca5d8 |
|
MD5 | 032b2a9399c43e556a3f38cba13dc8ef |
|
BLAKE2b-256 | cf35272472289f86f0056903be6577be0d199ccd7ce1875cf1a735aba37fa586 |