Skip to main content

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

Starting physicists are often limited by their data processing abilities. This library makes it so easy a toddler could do it.


Installation

Install from PyPI using PIP:

pip install toddler

Anaconda users should follow this documentation and run conda activate and conda install pip before running the above pip command.

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.

Metadata

Release files for toddler 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for toddler 1.0.0
File Size Uploaded
toddler-1.0.0.tar.gz 20.2 kB Details

Release files / toddler-1.0.0.tar.gz

Download URL toddler-1.0.0.tar.gz
Size 20.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e77614662c20d54fc40b36c432e1d68680042266681c6efe8e6f08b5cf0f03ef
BLAKE2b-256 checksum
How to use checksums
e8ffb090b0a1b9aa7d40cb46657e23de24d528edfcdf12a0dab7e5dc7a62ea0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

0.1.1

1 release file

0.1

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page