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.3.tar.gz (43.5 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.3-py3-none-any.whl (48.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: physics_utils-0.3.3.tar.gz
  • Upload date:
  • Size: 43.5 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.3.tar.gz
Algorithm Hash digest
SHA256 93ddd2939b3560a438a67be888d0dae3183caeaea8118a5a7c34bda4ea88d84b
MD5 749d9cee981e03ce37c9e4e83e254033
BLAKE2b-256 f4e03ef54c257fa9b68859204acc42c55fe8778e5d0129fb1c76a9b6a5cd744d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: physics_utils-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 48.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7f4e734ada50534084a5c6edc16970acf677bc0b429a5735bab798664c32b76f
MD5 f97ef08663f75f91a49f43201ef4dda5
BLAKE2b-256 ff6dd0bdfee699e152a4ecb67c8ef7758a9d423915debf42ec08ea7ce4525e37

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