Skip to main content

A Python interface to the CHIANTI atomic database

Project description

fiasco

Powered by SunPy Badge fiasco CI status Documentation Status 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.1.1.tar.gz (161.3 kB view details)

Uploaded Source

Built Distribution

fiasco-0.1.1-py3-none-any.whl (91.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fiasco-0.1.1.tar.gz
  • Upload date:
  • Size: 161.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for fiasco-0.1.1.tar.gz
Algorithm Hash digest
SHA256 95e37e34677501e035ab209be06ae0718d82e2c54057419ee7abba891bc75c74
MD5 b05bf4ff3a40e085385f8537f54ed5c3
BLAKE2b-256 ce30b14321bbd0e4b33b5ea78e8ffe712e5115bd11267ba4059f2c4a427ca315

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fiasco-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 91.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for fiasco-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 90228e4f1f3c1ca6af9b349e00e9203f74522f804ec5c27edeb44276590ad462
MD5 75f3a5ba38f62246f225f58f4ac49f2d
BLAKE2b-256 c05e86a5ffe829a9e5a6792bcb30a1e756b203f7cbd2e8d8f96a645a8c3e8572

See more details on using hashes here.

Supported by

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