Skip to content

Commit

Permalink
fix check of calibration date
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Sep 18, 2023
1 parent 4c218b6 commit 48b2b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iblrig/base_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit 48b2b73

Please sign in to comment.