caldus: Platinum Resistor Conversion Python Package
Introduction
caldus is a user-friendly, robust Python package specifically designed to facilitate the conversion between resistance values and temperatures of platinum resistors. It is based on the Callender-Van Dusen equations (thus the name caldus) and the IEC 60751:2022 standard.
Key Features
Supports Various Platinum Resistors: The package supports a broad range of platinum resistors including PT100, PT500, PT1000, and more.
Easy to Use: Simply input the resistance or the temperature and the corresponding value will be returned.
Flexible Integration: Written in Python, caldus can be easily integrated with other Python applications or used for data analysis.
Installation
To install caldus from PyPI, run:
pip install caldus
To install the latest development version from Github, run:
pip install git+https://github.com/gunnstein/caldus.git
Usage
Below is a simple usage example:
import caldus
# Convert resistance to temperature
temp = caldus.resistance2temperature(110)
# Convert temperature to resistance
res = caldus.temperature2resistance(25)
# Alternatively you can use the wrapper functions `r2t` and `t2r` to achieve the same.
res = caldus.r2t(110)
temp = caldus.t2r(25)
print(temp) # output: ~25.68
print(res) # output: ~109
# All functions can also take array like objects
temps = [0., 12., 21.]
resistances = caldus.t2r(temps)
Support and Contribution
Please report issues via the GitHub issue tracker.
To contribute, please fork this repository, make your changes, and issue a pull request.
Metadata
Release files for caldus 1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| caldus-1.3.tar.gz | 5.2 kB | Without provenance | Details for caldus-1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| caldus-1.3-py3-none-any.whl | Python 3 | none | any | Details for caldus-1.3-py3-none-any.whl |
Total release size: 11.3 kB
Release files / caldus-1.3.tar.gz
| Download URL | caldus-1.3.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5139a85bef2020340a7da33223214a00a628a73aa0d15a687371c2aed4985bce
|
|
BLAKE2b-256 checksum How to use checksums |
cebd927647f0512613edb8d891182d6b389bf58f97bac8af044b167eeb98a44a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Release files / caldus-1.3-py3-none-any.whl
| Download URL | caldus-1.3-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e48ebb0c4223871a453c8d00c5dd07d88e41b050686f74c104dfdedd705eaae
|
|
BLAKE2b-256 checksum How to use checksums |
03c0d13682e6c73bd36bff0b298f6a4f3115099add95f0915189e862734c8b3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.3
|
Security for caldus 1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.