Skip to main content

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.
DT670_D6068043_calibration_curve

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

G31_thermometry-1.0.1.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

G31_thermometry-1.0.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page