Skip to main content

Tools and Operations for Data, Diagnostics, Light, and other Electromagnetic Radiation

Project description

Toddler: Tools and Operations for Diagnostics, Data, Light, and other Electromagnetic Radiation

Starting physicists are often limited by their data processing abilities. With this library, I try to make it so easy a toddler can do it.


Functionality

This module is split up into physics (e.g. conversion of units) and data processing (e.g. filtering images)

Data

toddler.data.spectrum.Spectrum has the most utility of this library. It makes iterative processing on numpy arrays and its coordinates much simpler. The code below loads data of an optical spectrometer, applies some heavy processing, and plots the result. The equivalent code with out-of-the-box numpy would be much more convoluted.

from toddler.data.spectrum import Spectrum
import matplotlib.pyplot as plt 

s = Spectrum.from_file("some_file.csv")
s = s.median(axis=2)
     .mean(axis=1)
     .slice(lambda_start=534e-9, lambda_end=600e-9)
     .filter("movmean", N=5)
     .squeeze()

plt.figure()
plt.plot(s.lambdanm, s.data)
plt.show()

Physics

toddler.physics.const constains all scipy constants.

toddler.physics.energy contains utility functions related to energy (e.g. conversion from eV to J)

toddler.physics.flow contains utility functions related to flow (e.g. conversion from slm to mass flux)

toddler.physics.kinetics is an empty work-in-progress.

toddler.physics.light contains utility functions related to the intensity and unit of light (e.g. conversion from wavenumbers to wavelength)

toddler.physics.thermodynamics contains utilities for thermodynamic properties (e.g. pressure to gas density)

toddler.physics.transport is a work-in-progress.

See also

For other tools for researchers and scientists, see

  • wedme: Journal-quality stylesheets for papers, posters and presentations
  • pypdfplot: Embedding in a figure its generating Pythons script.

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

toddler-0.0.2.tar.gz (13.6 kB view details)

Uploaded Source

File details

Details for the file toddler-0.0.2.tar.gz.

File metadata

  • Download URL: toddler-0.0.2.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for toddler-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c12c847d34c39eff46d518032b2b4c3675666bedea0247c8e662e21fe5f70fbf
MD5 432852ff06a42e74f5067f611bbe69fe
BLAKE2b-256 9b3ce56fb7298bea2b961ccc596cb2fe8776821777444e16ed1024f86c13f484

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