Skip to content

Commit

Permalink
bump version; add changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Feb 2, 2021
1 parent 6362b65 commit 015f076
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### 2021.2.2

- new SQL tables: `led_events`, `led_algorithm_settings`
- `dosing_algorithm_settings` has a new schema: a json blob to represent any editable settings.
- new `pio` command: `pio run led_intensity`, ex: `pio run led_intensity --channel B intensity 50`
- new `pio` command: `pio update` will update the software to the latest code on Github (later will be latest released version), and if possible, update the UI code as well.
- new library dependency `DAC43608` that supports our LED driver.
- config.ini now has abstracted any RaspberryPi pins: we only refer to the PCB labels now in config.ini
- `pio kill` can accept multiple jobs, ex: `pio kill stirring od_reading`
4 changes: 2 additions & 2 deletions pioreactor/background_jobs/subjobs/dosing_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ def set_duration(self, value):
def run(self, counter=None):
time.sleep(8) # wait some time for data to arrive
if (self.latest_growth_rate is None) or (self.latest_od is None):
self.logger.debug("Waiting for OD and growth rate data to arrive.")
self.logger.debug("Waiting for OD and growth rate data to arrive")
if not ("od_reading" in pio_jobs_running()) and (
"growth_rate_calculating" in pio_jobs_running()
):
raise IOError(
"failed: `od_reading` and `growth_rate_calculating` should be running."
)
event = events.NoEvent("waiting for OD and growth rate data to arrive.")
event = events.NoEvent("waiting for OD and growth rate data to arrive")

elif self.state != self.READY:
event = events.NoEvent(f"currently in state {self.state}")
Expand Down
4 changes: 2 additions & 2 deletions pioreactor/background_jobs/subjobs/led_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,14 @@ def set_duration(self, value):
def run(self, counter=None):
time.sleep(8) # wait some time for data to arrive
if (self.latest_growth_rate is None) or (self.latest_od is None):
self.logger.debug("Waiting for OD and growth rate data to arrive.")
self.logger.debug("Waiting for OD and growth rate data to arrive")
if not ("od_reading" in pio_jobs_running()) and (
"growth_rate_calculating" in pio_jobs_running()
):
raise IOError(
"failed: `od_reading` and `growth_rate_calculating` should be running."
)
event = events.NoEvent("waiting for OD and growth rate data to arrive.")
event = events.NoEvent("waiting for OD and growth rate data to arrive")

elif self.state != self.READY:
event = events.NoEvent(f"currently in state {self.state}")
Expand Down
2 changes: 1 addition & 1 deletion pioreactor/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# -*- coding: utf-8 -*-
__version__ = "21.1.3"
__version__ = "21.2.1"

0 comments on commit 015f076

Please sign in to comment.