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.2.tar.gz (43.3 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.2-py3-none-any.whl (48.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: physics_utils-0.3.2.tar.gz
  • Upload date:
  • Size: 43.3 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.2.tar.gz
Algorithm Hash digest
SHA256 760ebc4e5e6a93ce59f2f341adfa645690401c4230712465f975e2b34a1af9ed
MD5 e6559ad66010a64ba0b33204d4f8ddc2
BLAKE2b-256 d04ca4c5f7ee88be6ab746ad1d7618af5fa405e3f72834aa57df8076447a21df

See more details on using hashes here.

File details

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

File metadata

  • Download URL: physics_utils-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 48.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 75386a8e4dae5c14e59de5e5eeeda61ec35e7c3b91cfc2271b5e50dfd1e6c1c1
MD5 c25e4e0294fe1af86a3a4db157ec8ca7
BLAKE2b-256 378e9728b60753ebdc16a013ccca8cee95c97f98ece55c311c7eb6c108542ce2

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