Skip to content

Commit a4c4a0b

Browse files
committed
Add bytes unit.
1 parent 817f876 commit a4c4a0b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pds3/tests/test_units.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def test_localhour():
2828
('candelas', u.cd),
2929
('radians', u.rad),
3030
('steradians', u.sr),
31+
('bytes', u.byte)
3132
])
3233
def test_plural_unit(unit, other):
3334
with units.enable():

pds3/units.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
candelas = u.def_unit('candelas', u.cd, namespace=_namespace)
3838
radians = u.def_unit('radians', u.rad, namespace=_namespace)
3939
steradians = u.def_unit('steradians', u.sr, namespace=_namespace)
40+
bytes = u.def_unit('bytes', u.byte, namespace=_namespace)
4041

4142
###########################################################################
4243
# DOCSTRING

0 commit comments

Comments
 (0)