Ensure timesteps are positive

Co-Authored-By: Andrew Johnson <drewej@protonmail.com>
This commit is contained in:
Paul Romano 2020-02-12 12:21:25 -06:00 committed by GitHub
parent 3682f7adcb
commit 4966ff7c5d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -680,7 +680,7 @@ class Integrator(ABC):
for time, unit, watts in zip(times, units, power):
# Make sure values passed make sense
check_type('timestep', time, Real)
check_greater_than('timestep', time, 0.0, True)
check_greater_than('timestep', time, 0.0, False)
check_type('timestep units', unit, str)
check_type('power', watts, Real)
check_greater_than('power', watts, 0.0, True)