File: dimensionless.py

package info (click to toggle)
python-quantities 0.16.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 896 kB
  • sloc: python: 8,107; makefile: 75; sh: 3
file content (26 lines) | stat: -rw-r--r-- 389 bytes parent folder | download | duplicates (3)
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
"""
"""

from ..unitquantity import dimensionless, UnitQuantity

percent = UnitQuantity(
    'percent',
    .01*dimensionless,
    symbol='%'
)

count = counts = UnitQuantity(
    'count',
    1*dimensionless,
    symbol='ct',
    aliases=['cts', 'counts']
)

lsb = UnitQuantity(
    'least_significant_bit',
    1*dimensionless,
    symbol='lsb',
    aliases=['lsbs']
)

del UnitQuantity