Debian Codegraph @

doc/sphinx/discoverer/discoverer.py

raw
1 """
2 Partial table of element discoverers.
3
4 From http://en.wikipedia.org/wiki/Discoveries_of_the_chemical_elements.
5 """
6
7 from periodictable.core import Element
8
9 def init(table, reload=False):
10 if 'discoverer' in table.properties and not reload: return
11 table.properties.append('discoverer')
12
13 # Set the default, if any
14 Element.discoverer = "Unknown"
15
16 # Not numeric, so no discoverer_units
17
18 # Load the data
19 for name,person in data.items():
20 el = table.name(name)
21 el.discoverer = person
22
23 data = dict(
24 arsenic="Jabir ibn Hayyan",
25 antimony="Jabir ibn Hayyan",
26 bismuth="Jabir ibn Hayyan",
27 phosphorus="H. Brand",
28 cobalt="G. Brandt",
29 platinum="A. de Ulloa",
30 nickel="A.F. Cronstedt",
31 magnesium="J. Black",
32 )