Don't bother checking that dose is a scalar

This commit is contained in:
Jan Petykiewicz 2020-08-11 01:18:52 -07:00
parent f57ccc073d
commit 99ded5c113

View File

@ -67,8 +67,6 @@ class DoseableImpl(Doseable, metaclass=ABCMeta):
@dose.setter
def dose(self, val: float):
if not is_scalar(val):
raise PatternError('Dose must be a scalar')
if not val >= 0:
raise PatternError('Dose must be non-negative')
self._dose = val