Skip to content

Commit 3d0afe0

Browse files
committed
Remove deprecated mb as symbol for millibar unit
In order to be consistent with the other pressure units that are derived from the unit bar, we should use mbar as the symbol for millibar. The symbol mb, which is a deprecated symbol, because the b in mb conflicts with the metric unit barn, was removed. Since the other bar units also define an alias with a written out SI prefix, this change also adds the unit "millibars" as an alias for mbar.
1 parent 824af4f commit 3d0afe0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

quantities/units/pressure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
100000*pascal,
5252
aliases=['bars']
5353
)
54-
mb = mbar = millibar = UnitQuantity(
54+
mbar = millibar = UnitQuantity(
5555
'millibar',
5656
0.001*bar,
57-
symbol='mb',
58-
aliases=['mbar']
57+
symbol='mbar',
58+
aliases=['millibars']
5959
)
6060
kbar = kilobar = UnitQuantity(
6161
'kilobar',

0 commit comments

Comments
 (0)