Don't bother checking that dose is a scalar
This commit is contained in:
parent
f57ccc073d
commit
99ded5c113
@ -67,8 +67,6 @@ class DoseableImpl(Doseable, metaclass=ABCMeta):
|
|||||||
|
|
||||||
@dose.setter
|
@dose.setter
|
||||||
def dose(self, val: float):
|
def dose(self, val: float):
|
||||||
if not is_scalar(val):
|
|
||||||
raise PatternError('Dose must be a scalar')
|
|
||||||
if not val >= 0:
|
if not val >= 0:
|
||||||
raise PatternError('Dose must be non-negative')
|
raise PatternError('Dose must be non-negative')
|
||||||
self._dose = val
|
self._dose = val
|
||||||
|
Loading…
Reference in New Issue
Block a user