From 5014ce24b11c2d390bb7c56f227fb6a356496822 Mon Sep 17 00:00:00 2001 From: CamDavidsonPilon Date: Thu, 18 Jul 2024 16:08:02 -0400 Subject: [PATCH] use when over repeat --- 30_start_chemostat_after_threshold_reached.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/30_start_chemostat_after_threshold_reached.yaml b/30_start_chemostat_after_threshold_reached.yaml index 515aa43..f16565c 100644 --- a/30_start_chemostat_after_threshold_reached.yaml +++ b/30_start_chemostat_after_threshold_reached.yaml @@ -30,14 +30,12 @@ pioreactors: hours_elapsed: 0.0 dosing_automation: actions: - - type: repeat + - type: when hours_elapsed: 0.08 # start after 5m - repeat_every_hours: 0.08 # check every ~5m - while: pr1:growth_rate_calculating:od_filtered.od_filtered <= 30 + condition: pr1:growth_rate_calculating:od_filtered.od_filtered > 30 actions: - type: start - hours_elapsed: 0.079 - if: pr1:growth_rate_calculating:od_filtered.od_filtered > 30 + hours_elapsed: 0.0 options: automation_name: chemostat volume: 0.63