From 48b2b73672d0ca15302e440d283c4da114c7cf05 Mon Sep 17 00:00:00 2001 From: Florian Rau Date: Mon, 18 Sep 2023 15:08:32 +0100 Subject: [PATCH] fix check of calibration date --- iblrig/base_tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iblrig/base_tasks.py b/iblrig/base_tasks.py index 5816f3bf8..cc0a28759 100644 --- a/iblrig/base_tasks.py +++ b/iblrig/base_tasks.py @@ -788,7 +788,7 @@ def init_mixin_valve(self: object): self.valve = Bunch({}) # the template settings files have a date in 2099, so assume that the rig is not calibrated if that is the case # the assertion on calibration is thrown when starting the device - self.valve['is_calibrated'] = datetime.date.today() > self.hardware_settings['device_valve']['WATER_CALIBRATION_DATE'] + self.valve['is_calibrated'] = datetime.date.today() >= self.hardware_settings['device_valve']['WATER_CALIBRATION_DATE'] self.valve['fcn_vol2time'] = scipy.interpolate.pchip( self.hardware_settings['device_valve']["WATER_CALIBRATION_WEIGHT_PERDROP"], self.hardware_settings['device_valve']["WATER_CALIBRATION_OPEN_TIMES"],