From 015f07613e46aa6f1f140b814122c412e7176840 Mon Sep 17 00:00:00 2001 From: CamDavidsonPilon Date: Tue, 2 Feb 2021 09:33:19 -0500 Subject: [PATCH] bump version; add changelog --- CHANGELOG.md | 9 +++++++++ pioreactor/background_jobs/subjobs/dosing_algorithm.py | 4 ++-- pioreactor/background_jobs/subjobs/led_algorithm.py | 4 ++-- pioreactor/version.py | 2 +- 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..98ba4440 --- /dev/null +++ b/CHANGELOG.md @@ -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` diff --git a/pioreactor/background_jobs/subjobs/dosing_algorithm.py b/pioreactor/background_jobs/subjobs/dosing_algorithm.py index 90b3bb8a..b5d3509a 100644 --- a/pioreactor/background_jobs/subjobs/dosing_algorithm.py +++ b/pioreactor/background_jobs/subjobs/dosing_algorithm.py @@ -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}") diff --git a/pioreactor/background_jobs/subjobs/led_algorithm.py b/pioreactor/background_jobs/subjobs/led_algorithm.py index 9cb02197..e6e31e4f 100644 --- a/pioreactor/background_jobs/subjobs/led_algorithm.py +++ b/pioreactor/background_jobs/subjobs/led_algorithm.py @@ -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}") diff --git a/pioreactor/version.py b/pioreactor/version.py index f755ee88..64357bc3 100644 --- a/pioreactor/version.py +++ b/pioreactor/version.py @@ -1,2 +1,2 @@ # -*- coding: utf-8 -*- -__version__ = "21.1.3" +__version__ = "21.2.1"