/usr/share/pyshared/quantities/units/power.py is in python-quantities 0.10.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | """
"""
from __future__ import absolute_import
from ..unitquantity import UnitQuantity
from .energy import Btu, J
from .time import s, h, min
from .electromagnetism import A, V
from .length import ft
from .force import lbf
W = watt = volt_ampere = UnitQuantity(
'watt',
J/s,
symbol='W',
aliases=['watts', 'volt_ampere', 'volt_amperes', 'VA']
)
mW = milliwatt = UnitQuantity(
'milliwatt',
W/1000,
symbol='mW',
aliases=['milliwatts']
)
kW = kilowatt = UnitQuantity(
'kilowatt',
1000*W,
symbol='kW',
aliases=['kilowatts']
)
MW = megawatt = UnitQuantity(
'megawatt',
1000*kW,
symbol='MW',
aliases=['megawatts']
)
hp = horsepower = UK_horsepower = British_horsepower = UnitQuantity(
'horsepower',
33000*ft*lbf/min,
symbol='hp',
aliases=['UK_horsepower', 'British_horsepower']
)
boiler_horsepower = UnitQuantity(
'boiler_horsepower',
33475*Btu/h
)
metric_horsepower = UnitQuantity(
'metric_horsepower',
0.73549875*kW,
doc='exact'
)
electric_horsepower = UnitQuantity(
'electric_horsepower',
746*W
)
water_horsepower = UnitQuantity(
'water_horsepower',
746.043*W,
doc='exact'
)
refrigeration_ton = ton_of_refrigeration = UnitQuantity(
'refrigeration_ton',
12000*Btu/h,
aliases=['ton_of_refrigeration']
)
del UnitQuantity, Btu, J, s, h, A, V
|