{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "nbsphinx": "hidden" }, "outputs": [], "source": [ "# Hidden cell (check metadata)\n", "import warnings\n", "warnings.simplefilter('ignore')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Atomic Weights and Isotopic Compositions\n", "\n", "This [database](http://www.nist.gov/pml/data/comp.cfm) provides atomic weights for elements 1 through 118 and isotopic compositions (abundances). Look [here](http://nist.gov/pml/data/comp-notes.cfm#comp) for the detailed description." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Import the `NISTWeightsComp` and `NISTIonizationEnergies` classes." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [], "source": [ "from carsus.io.nist import NISTWeightsComp, NISTIonizationEnergies" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Initialize classes passing the selected atoms as arguments." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Downloading data from the NIST Atomic Weights and Isotopic Compositions database.\n" ] } ], "source": [ "nist_weights = NISTWeightsComp('H-Ne')" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Downloading ionization energies from the NIST Atomic Spectra Database\n" ] } ], "source": [ "nist_ioniz = NISTIonizationEnergies('H-Ne')" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Data is stored in the `base` attribute." ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | symbol | \n", "name | \n", "mass | \n", "
---|---|---|---|
atomic_number | \n", "\n", " | \n", " | \n", " |
1 | \n", "H | \n", "Hydrogen | \n", "1.007975 | \n", "
2 | \n", "He | \n", "Helium | \n", "4.002602 | \n", "
3 | \n", "Li | \n", "Lithium | \n", "6.967500 | \n", "
4 | \n", "Be | \n", "Beryllium | \n", "9.012183 | \n", "
5 | \n", "B | \n", "Boron | \n", "10.813500 | \n", "
6 | \n", "C | \n", "Carbon | \n", "12.010600 | \n", "
7 | \n", "N | \n", "Nitrogen | \n", "14.006855 | \n", "
8 | \n", "O | \n", "Oxygen | \n", "15.999400 | \n", "
9 | \n", "F | \n", "Fluorine | \n", "18.998403 | \n", "
10 | \n", "Ne | \n", "Neon | \n", "20.179700 | \n", "