Skip to main content

Atomic Physics for Python

Project description

atomphys

atomphys logo

A Python package to help with atomic physics calculations.

Tests Codecov GitHub PyPI Binder

Documentation: mgrau.github.io/atomphys/

Source Code: github.com/mgrau/atomphys


atomphys is meant to be a good starting off point for your atomic physics calculations. It can automate much of the frustrating process of searching for and compiling physical data and simple pyhsical relations, and help you more quickly get to the good stuff.

It's designed with a natural interface and is easy to use.

Example

>>> from atomphys import Atom
>>> Rb = Atom('Rb')

>>> print(Rb('S1/2').to('P1/2').λ.to('nm'))
795 nm

>>> print(Rb('P1/2').τ.to('ns'))
27.7 ns

Installation

To install atomphys, simply use pip:

$ pip install atomphys

Features

  • Integration with Pint for robust handling of units
  • Automatically fetch energy level and transition data from the NIST Atomic Spectra Database
  • Use transition data to calculation state lifetimes, polarizabilities, transition dipole moments, cross sections, and saturation intensities

Requirements

Python 3.6+

atomphys makes extensive use of the excellent package Pint to handle units.

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

atomphys-0.0.4.tar.gz (48.0 kB view details)

Uploaded Source

Built Distribution

atomphys-0.0.4-py3-none-any.whl (50.9 kB view details)

Uploaded Python 3

File details

Details for the file atomphys-0.0.4.tar.gz.

File metadata

  • Download URL: atomphys-0.0.4.tar.gz
  • Upload date:
  • Size: 48.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for atomphys-0.0.4.tar.gz
Algorithm Hash digest
SHA256 4ca493a83aed86ee80344df8f154fc3b8768fa4af5776e3a6cc3a11eb100297e
MD5 3032066ee7786e36ca530663bef76b66
BLAKE2b-256 2c5cffeb3b26dce70e754ca89e525a43c74ee249735f238e7331b35758cfa5d2

See more details on using hashes here.

File details

Details for the file atomphys-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: atomphys-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 50.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for atomphys-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 847350ee09092016d2af612f52c1b26171e3c200238df8a3aa00972fffd0b5ac
MD5 f4a606e1a7e126125d6ea521794b16b6
BLAKE2b-256 86776f05589a2aa59d862422f51f32006354d061a5f288e0f7b923ace914b030

See more details on using hashes here.

Supported by

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