Skip to main content

Helpers for empirical data handling and plotting

Project description

PyPI - Version Static Badge Python Tests

PhysicsTools

This is a library for dealing with some tedious tasks for basic physics labs.

Features

  • Automatic uncertainty propagation on basic arithmetic and trigonometric operations
  • Generated LaTeX steps of any calculations done with the MeasuredData class
  • 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


Download files

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

Source Distribution

physics_utils-0.3.4.tar.gz (43.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

physics_utils-0.3.4-py3-none-any.whl (49.1 kB view details)

Uploaded Python 3

File details

Details for the file physics_utils-0.3.4.tar.gz.

File metadata

  • Download URL: physics_utils-0.3.4.tar.gz
  • Upload date:
  • Size: 43.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for physics_utils-0.3.4.tar.gz
Algorithm Hash digest
SHA256 7f331229326dbb45e7c072b9593ef5a4a971580f23c0aa0915b162116dc19f17
MD5 80d3e0b8999fe337ca49ddab4bc51542
BLAKE2b-256 f566f798ffd5f9c559bc754328613cadcc58e6c1638cf4c5e90093f9fec52a86

See more details on using hashes here.

File details

Details for the file physics_utils-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: physics_utils-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 49.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for physics_utils-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5ec2c2e6dc9a9d08957dafd11832341d0d484cec94fb10a64a13eac22d54dd93
MD5 3981b2b9d1510b162f6707b088c3eba3
BLAKE2b-256 cb65bc4a5bbac439d7b321ef93962925459eaaac31b3234058d2f59bfe154622

See more details on using hashes here.

Supported by

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