Package lib :: Module periodic_table
[hide private]
[frames] | no frames]

Module periodic_table

source code

Module containing a Python object representation of the period table.

The currently used atomic weights are from:

The currently used isotope atomic masses are taken from http://www.ciaaw.org/atomic-masses.htm, itself taken from:

Classes [hide private]
  Element
A special object representing each element.
  Isotope
A special object for the element container for holding different isotope information.
  Periodic_table
The periodic table object.
Functions [hide private]
int, str
isotope_to_mass_symbol(isotope)
Convert the given isotope to its mass number and atomic symbol.
source code
float
process_mass(mass)
Process the given mass, handling ranges, unstable isotopes, and uncertainties.
source code
str
process_symbol(symbol)
Make sure the symbol is in the correct format.
source code
Variables [hide private]
  periodic_table = {'Ru': <lib.periodic_table.Element instance a...
  element = periodic_table._add(atomic_number= 118, symbol= 'Uuo...
  __package__ = 'lib'

Imports: array, average, float64, search, split, RelaxError


Function Details [hide private]

isotope_to_mass_symbol(isotope)

source code 

Convert the given isotope to its mass number and atomic symbol.

Parameters:
  • isotope (str) - The isotope name, e.g. '15N'.
Returns: int, str
The mass number A and atomic symbol.

process_mass(mass)

source code 

Process the given mass, handling ranges, unstable isotopes, and uncertainties.

Parameters:
  • mass (str) - The atomic mass of standard atomic weight.
Returns: float
The corresponding mass.

process_symbol(symbol)

source code 

Make sure the symbol is in the correct format.

Parameters:
  • symbol (str) - The atomic symbol.
Returns: str
The corrected atomic symbol.

Variables Details [hide private]

periodic_table

Value:
{'Ru': <lib.periodic_table.Element instance at 0x7f33e5b05680>, 'Re': \
<lib.periodic_table.Element instance at 0x7f33e5b1e560>, 'Rf': <lib.pe\
riodic_table.Element instance at 0x7f33e5b25f38>, 'Rg': <lib.periodic_\
table.Element instance at 0x7f33e5b2a368>, 'Ra': <lib.periodic_table.E\
lement instance at 0x7f33e5b25440>, 'Rb': <lib.periodic_table.Element \
instance at 0x7f33e5b00e60>, 'Rn': <lib.periodic_table.Element instanc\
e at 0x7f33e5b25320>, 'Rh': <lib.periodic_table.Element instance at 0x\
7f33e5b058c0>, 'Be': <lib.periodic_table.Element instance at 0x7f33e5a\
...

element

Value:
periodic_table._add(atomic_number= 118, symbol= 'Uuo', name= 'Ununocti\
um', atomic_weight= "[294]")