File: radioactivity.py

package info (click to toggle)
python-measurement 3.2.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 332 kB
  • sloc: python: 1,402; makefile: 13
file content (27 lines) | stat: -rw-r--r-- 491 bytes parent folder | download
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
from measurement.base import MeasureBase


__all__ = [
    'Radioactivity'
]


class Radioactivity(MeasureBase):
    """Radioactivity measurements."""

    STANDARD_UNIT = 'bq'
    UNITS = {
        'bq': 1,
        'ci': 37000000000,
        'rd': 1000000,
        'dpm': 1/60,
    }
    ALIAS = {
        'becquerel': 'bq',
        'Bq': 'bq',
        'curie': 'ci',
        'Ci': 'ci',
        'rutherford': 'rd',
        'disintegrations per minute': 'dpm', 
    }
    SI_UNITS = ['bq']