Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Nov 28, 2024
1 parent a2c483c commit 3e8d9f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pioreactor/background_jobs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ def __init__(self, *args, source="app", **kwargs) -> None:

self.add_to_published_settings("enable_dodging_od", {"datatype": "boolean", "settable": True})
self.set_enable_dodging_od(
config.get(f"{self.job_name}.config", "enable_dodging_od", fallback="True")
config.getboolean(f"{self.job_name}.config", "enable_dodging_od", fallback="True")
)

def action_to_do_before_od_reading(self) -> None:
Expand Down Expand Up @@ -1089,8 +1089,8 @@ def _setup_actions(self, msg: pt.MQTTMessage) -> None:
except AttributeError:
pass

post_delay = config.get(f"{self.job_name}.config", "post_delay_duration", fallback=1.0)
pre_delay = config.get(f"{self.job_name}.config", "pre_delay_duration", fallback=1.5)
post_delay = config.getfloat(f"{self.job_name}.config", "post_delay_duration", fallback=1.0)
pre_delay = config.getfloat(f"{self.job_name}.config", "pre_delay_duration", fallback=1.5)

if post_delay < 0.25:
self.logger.warning("For optimal OD readings, keep `post_delay_duration` more than 0.25 seconds.")
Expand Down

0 comments on commit 3e8d9f4

Please sign in to comment.