Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Dec 11, 2024
1 parent c8b5794 commit dcb3dac
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions pioreactor/actions/od_blank.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ def od_blank(
logger = create_logger(action_name, unit=unit, experiment=experiment)
logger.info("Starting blank OD calibration.")

if is_pio_job_running("od_reading"):
logger.error("OD Reading should be off. Perform OD Blanking _before_ OD Reading.")
raise click.Abort()

with managed_lifecycle(unit, experiment, action_name):
try:
with temporary_config_change(config, "stirring.config", "enable_dodging_od", "False"):
Expand Down
2 changes: 1 addition & 1 deletion pioreactor/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _get_conv(self, section, option, conv, *, raw=False, vars=None, fallback=Non
except TypeError as e:
from pioreactor.logging import create_logger

create_logger("read config").error(e)
create_logger("read config").error(f"Error in [{section}] parameter {option}: {e}")
raise e

def getboolean(self, section: str, option: str, *args, **kwargs) -> bool: # type: ignore
Expand Down
2 changes: 1 addition & 1 deletion pioreactor/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Append "dev0" if a dev version
# Append "rc0" if a rc version
# No zero padding!
__version__ = "24.12.5"
__version__ = "24.12.5.dev0"


def get_hardware_version() -> tuple[int, int] | tuple[int, int, str]:
Expand Down

0 comments on commit dcb3dac

Please sign in to comment.