atomphys
A Python package to help with atomic physics calculations.
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.
Release files for atomphys 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| atomphys-0.0.4.tar.gz | 48.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atomphys-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:98.9 kB
Release files / atomphys-0.0.4.tar.gz
| Download URL | atomphys-0.0.4.tar.gz |
|---|---|
| Size | 48.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ca493a83aed86ee80344df8f154fc3b8768fa4af5776e3a6cc3a11eb100297e
|
|
BLAKE2b-256 checksum How to use checksums |
2c5cffeb3b26dce70e754ca89e525a43c74ee249735f238e7331b35758cfa5d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / atomphys-0.0.4-py3-none-any.whl
| Download URL | atomphys-0.0.4-py3-none-any.whl |
|---|---|
| Size | 50.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
847350ee09092016d2af612f52c1b26171e3c200238df8a3aa00972fffd0b5ac
|
|
BLAKE2b-256 checksum How to use checksums |
86776f05589a2aa59d862422f51f32006354d061a5f288e0f7b923ace914b030
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|