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
File details
Details for the file G31_thermometry-1.0.1.tar.gz
.
File metadata
- Download URL: G31_thermometry-1.0.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 420aad7e1c12e6162505c021866a31418c51f267da058a3be30adc20afe8a04d |
|
MD5 | 4c237e29f5f184c3345b3531edd29e30 |
|
BLAKE2b-256 | 3915c5753e2b078d814368b139006ed9891d86fe056abf95d2585c6f58435bd4 |
File details
Details for the file G31_thermometry-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: G31_thermometry-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4726d1362ce0465bac66ea3175d149388bc9237b4531f0c593d0693293ca5d8 |
|
MD5 | 032b2a9399c43e556a3f38cba13dc8ef |
|
BLAKE2b-256 | cf35272472289f86f0056903be6577be0d199ccd7ce1875cf1a735aba37fa586 |