Helpers for empirical data handling and plotting
Project description
PhysicsTools
This is a library for dealing with some tedious tasks for basic physics labs.
Be warned that, as this project is still in heavy development, backwards compatability can be broken between 0.x.0 versions. This is avoided as much as possible, but make sure to watch out for it when updating your installation.
Features
- Automatic uncertainty propagation on basic arithmetic and trigonometric operations
- Generated LaTeX steps of any calculations done with the
MeasuredDataclass - A physics scripting language for fast usage of the library
- Graping wrappers that take numbers with uncertainty for automatic error bars
- LaTeX data table generators
Installation
Look under the examples folder to see the library in use.
physics_utils can be installed straight from PyPI using pip, like so:
python3 -m pip install physics-utils
Usage
To get started with using the library, you can import MeasuredData from physics_utils and begin doing
calculations like normal once your numbers are wrapped:
from physics_utils import MeasuredData
print(MeasuredData(2, 0.5) * MeasuredData(3, 0.4)) # 6±2.
To start using the scripting language, you can type python3 -m physics_utils.script in your terminal to start the
interpreter, or python3 -m physics_utils.script <filename> to run a file. To do the same as the example above in the
physics script interpreter, you'd just need to type this:
>>> 2~0.5 * 3~0.4
6±2.
And there are a number of other helpful features built into the language.
For more information on using the package, take a look at the documentation and examples.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file physics_utils-0.4.1.tar.gz.
File metadata
- Download URL: physics_utils-0.4.1.tar.gz
- Upload date:
- Size: 44.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
435c59da9b5557e5fe5b919f413c8cd4d78d2c8b438149a52f5338d226bfad5d
|
|
| MD5 |
883aade539257545611f945fd3cc2371
|
|
| BLAKE2b-256 |
1a9a4331e7014788a6f4f3bab05ba8ea80dfb298a817eb4b539bcd34d28d1db4
|
File details
Details for the file physics_utils-0.4.1-py3-none-any.whl.
File metadata
- Download URL: physics_utils-0.4.1-py3-none-any.whl
- Upload date:
- Size: 49.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf6188c14e73a205c07f36e7d7c4baff610a52fe3133070b4f4b1aefd313442c
|
|
| MD5 |
d40e78bd42387dee98db9e5286b807e4
|
|
| BLAKE2b-256 |
99762afa30c98f33e2316293640cd2778858b1ef3dee06f3e7bfaf123fada43a
|