Skip to main content

A Python interface to the CHIANTI atomic database

Project description

fiasco

Powered by SunPy Badge fiasco CI status Documentation Status PyPI DOI codecov matrix

A Python interface to the CHIANTI atomic database. For a high level overview of the package, have a look at my talk (slides, video) from the 2018 Python in Astronomy conference.

Install

$ pip install fiasco

The CHIANTI atomic database is also required. See the docs for more details.

Example

>>> import astropy.units as u
>>> import fiasco
>>> iron = fiasco.Element('iron', [1e4, 1e6, 1e8]*u.K)
# Print some information about the element
>>> iron.atomic_number
26
>>> iron.atomic_symbol
'Fe'
>>> iron.abundance
<Quantity 3.16227766e-05>
# Select the Fe 16 ion
>>> iron[15].ion_name
'Fe 16'
>>> iron[15].charge_state
15
# Ionization fraction
>>> iron[15].ioneq
<Quantity [0.000e+00, 2.377e-08, 4.163e-18]>

Why fiasco?

A fiasco, or flask, is the typical style of bottle used to serve the Chianti Classico wine. It is typically larger and rounder at the bottom and is covered by a straw basket. In the same way, the fiasco package serves up the CHIANTI atomic database.

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

fiasco-0.2.3.tar.gz (168.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fiasco-0.2.3-py3-none-any.whl (98.5 kB view details)

Uploaded Python 3

File details

Details for the file fiasco-0.2.3.tar.gz.

File metadata

  • Download URL: fiasco-0.2.3.tar.gz
  • Upload date:
  • Size: 168.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for fiasco-0.2.3.tar.gz
Algorithm Hash digest
SHA256 f2d78c6ae0649cc92e0fd1008f6ca88e2cb10c4aaad3cdd3d3e4499283f79a47
MD5 6cec4e649d71df038d84bea420cdf2e2
BLAKE2b-256 a3156efae11f0f5b49e5003a5cc97d2eb3598ef72d29972c9335dad4e782d5da

See more details on using hashes here.

File details

Details for the file fiasco-0.2.3-py3-none-any.whl.

File metadata

  • Download URL: fiasco-0.2.3-py3-none-any.whl
  • Upload date:
  • Size: 98.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for fiasco-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9b60ad77029a0d43ad4b036f64ce3c3d130b96c59924e69917f3b03b87b9a13b
MD5 3d1b211583df2bbb2f96cdfe836d248c
BLAKE2b-256 f3bfc42ccd6252a783d7f81f75906f5c4c9f8d24de564381300897e6fc848d8c

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