Skip to content

Commit 1238689

Browse files
committed
1 parent 624ccba commit 1238689

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

phobos/io/representation.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1679,10 +1679,8 @@ def __init__(self, joint=None, multiplier=None, offset=None, **kwargs):
16791679
super().__init__()
16801680
self.joint = _singular(joint)
16811681
assert self.joint is not None
1682-
self.multiplier = multiplier
1683-
assert self.multiplier is not None
1684-
self.offset = offset
1685-
assert self.offset is not None
1682+
self.multiplier = multiplier or 1
1683+
self.offset = offset or 0
16861684
self.returns += ["joint", "multiplier", "offset"]
16871685

16881686
def equivalent(self, other):

0 commit comments

Comments
 (0)