pynucastro.nucdata.elements module#

Classes and methods that provide access to the periodic table.

class pynucastro.nucdata.elements.Element(abbreviation, name, Z)[source]#

Bases: object

An element—this holds the name, abbreviation, and proton number (Z)

Parameters:
  • abbreviation (str) – The element abbreviation.

  • name (str) – The full name of the element.

  • Z (int) – The proton number.

class pynucastro.nucdata.elements.PeriodicTable[source]#

Bases: object

The periodic table of elements.

classmethod lookup_Z(Z)[source]#

Given the proton number, return the Element.

Parameters:

Z (int) – The proton number of the element.

Return type:

Element

classmethod lookup_abbreviation(abbrev)[source]#

Given an abbreviation, return the Element.

Parameters:

abbrev (str) – The element abbreviation.

Return type:

Element

Raises:

UnidentifiedElement – If the element abbreviation is not found.

exception pynucastro.nucdata.elements.UnidentifiedElement[source]#

Bases: Exception

Exception for an unknown element.