File: discoverer.py

package info (click to toggle)
python-periodictable 2.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,068 kB
  • sloc: python: 13,338; makefile: 103; sh: 92; javascript: 7
file content (32 lines) | stat: -rw-r--r-- 753 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
"""
Partial table of element discoverers.

From http://en.wikipedia.org/wiki/Discoveries_of_the_chemical_elements.
"""

import periodictable.core

def init(table, reload=False):
    if 'discoverer' in table.properties and not reload: return
    table.properties.append('discoverer')

    # Set the default, if any
    periodictable.core.Element.discoverer = "Unknown"

    # Not numeric, so no discoverer_units

    # Load the data
    for name,person in data.items():
        el = table.name(name)
        el.discoverer = person

data = dict(
 arsenic="Jabir ibn Hayyan",
 antimony="Jabir ibn Hayyan",
 bismuth="Jabir ibn Hayyan",
 phosphorus="H. Brand",
 cobalt="G. Brandt",
 platinum="A. de Ulloa",
 nickel="A.F. Cronstedt",
 magnesium="J. Black",
)