Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Nov 29, 2024
1 parent f91b086 commit 9b7099c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions pioreactor/background_jobs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from pioreactor.pubsub import Client
from pioreactor.pubsub import create_client
from pioreactor.pubsub import QOS
from pioreactor.pubsub import subscribe
from pioreactor.utils import append_signal_handlers
from pioreactor.utils import is_pio_job_running
from pioreactor.utils import JobManager
Expand Down Expand Up @@ -1134,7 +1133,7 @@ def sneak_in(ads_interval, post_delay, pre_delay) -> None:
# in the same experiment, the od_reading fails catastrophically so that the settings are never
# cleared. Later, this job starts, and it will pick up the _old_ settings.
with JobManager() as jm:
ads_interval = jm.get_setting_from_running_job("od_reading", "interval")
ads_interval = jm.get_setting_from_running_job("od_reading", "interval", timeout=5)
ads_start_time = jm.get_setting_from_running_job(
"od_reading", "first_od_obs_time", timeout=5
) # this is populated later in the job...
Expand Down
4 changes: 2 additions & 2 deletions pioreactor/background_jobs/stirring.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ def action_to_do_before_od_reading(self):
def action_to_do_after_od_reading(self):
self.logger.debug("starting stirring")
self.start_stirring()
# sleep(1)
# self.poll_and_update_dc()
sleep(1)
self.poll_and_update_dc(2)

def initialize_dodging_operation(self):
self.set_duty_cycle(0)
Expand Down

0 comments on commit 9b7099c

Please sign in to comment.