From 5dd761c387e31fb8e6e1db37d18963458d51b2fa Mon Sep 17 00:00:00 2001 From: Justine Winnie Date: Wed, 18 Jan 2017 13:07:28 -0800 Subject: [PATCH] Add decibel unit to power.py --- quantities/units/power.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quantities/units/power.py b/quantities/units/power.py index 06774eb5..4bb35d9e 100644 --- a/quantities/units/power.py +++ b/quantities/units/power.py @@ -65,4 +65,10 @@ aliases=['ton_of_refrigeration'] ) +dB = decibel = UnitQuantity( + 'decibel', + symbol='dB', + aliases=['decibels'] +) + del UnitQuantity, Btu, J, s, h, A, V