Skip to content

Commit

Permalink
more 40 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Jan 25, 2025
1 parent 34ae649 commit 9c1fb34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pioreactor/background_jobs/monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,10 @@ def off(): # functions don't take any arguments, nothing is passed in
"""

if whoami.get_pioreactor_version() == (1, 0):
if whoami.get_pioreactor_model() == "pioreactor_20ml" and whoami.get_pioreactor_version() == (1, 0):
# made from PLA
MAX_TEMP_TO_SHUTDOWN = 66.0
elif whoami.get_pioreactor_version() >= (1, 1):
else:
# made from PC-CF
MAX_TEMP_TO_SHUTDOWN = 85.0 # risk damaging PCB components

Expand Down
6 changes: 3 additions & 3 deletions pioreactor/background_jobs/temperature_automation.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ class TemperatureAutomationJob(AutomationJob):

INFERENCE_SAMPLES_EVERY_T_SECONDS: float = 5.0

if whoami.get_pioreactor_version() == (1, 0):
if whoami.get_pioreactor_model() == "pioreactor_20ml" and whoami.get_pioreactor_version() == (1, 0):
# made from PLA
MAX_TEMP_TO_REDUCE_HEATING = 63.0
MAX_TEMP_TO_DISABLE_HEATING = 65.0 # probably okay, but can't stay here for too long
MAX_TEMP_TO_SHUTDOWN = 66.0
INFERENCE_N_SAMPLES: int = 29
INFERENCE_EVERY_N_SECONDS: float = 225.0

elif whoami.get_pioreactor_version() >= (1, 1):
# made from PC-CF
else:
# made from PC-CF - this is true for 40ml and 20ml v1.1
MAX_TEMP_TO_REDUCE_HEATING = 78.0
MAX_TEMP_TO_DISABLE_HEATING = 80.0
MAX_TEMP_TO_SHUTDOWN = 85.0 # risk damaging PCB components
Expand Down

0 comments on commit 9c1fb34

Please sign in to comment.