Skip to content

Commit

Permalink
mmm
Browse files Browse the repository at this point in the history
  • Loading branch information
CamDavidsonPilon committed Oct 16, 2024
1 parent 3748c8f commit f9f8235
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
#### Enhancements
- `dosing_automation.vial_volume` replaced with `liquid_volume`.
- Adding a SQL table for tracking `liquid_volume`
- Because we are now storing `liquid_volume` in the database, you can add charts in the UI that track the volume over time:
1. Add the following yaml contents to `~/.pioreactor/plugins/contrib/charts/lqiuid_volume.yaml`: https://gist.github.com/CamDavidsonPilon/95eef30189101da69f706d02ef28d972
2. In your config.ini, under `ui.overview.charts`, add the line `liquid_volume=1`.
- New dataset exports from the Export data page in the UI: calibrations and liquid-volumes.
- Added a "partition by unit" option to the Export data page that will create a csv per Pioreactor in the export, instead of grouping them all together.
- od calibrations can use the `-f` to edit calibration polynomial coefficients.
- faster UI response times when starting jobs
- faster syncing configs
- faster copying files across cluster via `pio cp`
- Because we are now storing `liquid_volume` in the database, you can add charts in the UI that track the volume over time:
1. Add the following yaml contents to `~/.pioreactor/plugins/contrib/charts/lqiuid_volume.yaml`: https://gist.github.com/CamDavidsonPilon/95eef30189101da69f706d02ef28d972
2. In your config.ini, under `ui.overview.charts`, add the line `liquid_volume=1`.
- New API endpoints for getting the current settings of a _running_ job:
- Per pioreactor:
- GET: `/unit_api/jobs/settings/job_name/<job_name>`
Expand All @@ -22,7 +22,7 @@
- GET: `/api/jobs/settings/job_name/<job_name>/experiments/<experiment>/setting/<setting>`
- GET: `/api/jobs/settings/workers/<unit>/job_name/<job_name>/experiments/<experiment>`
- GET: `/api/jobs/settings/workers/<unit>/job_name/<job_name>/experiments/<experiment>/setting/<setting>`
Ex: query the temperature of a Pioreactor: `curl pio01.local/unit_api/jobs/settings/job_name/temperature_automation/setting/temperature`
Ex: query the temperature of a Pioreactor: `curl http://pio01.local/unit_api/jobs/settings/job_name/temperature_automation/setting/temperature`


#### Breaking changes
Expand Down
5 changes: 4 additions & 1 deletion bumpver.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ push = true

[bumpver.file_patterns]
"setup.py" = [
'version="{pep440_version}",',
'version="{pep440_version}",'
]
"bumpver.toml" = [
'current_version = "{version}"',
]
"pioreactor/version.py" = [
'^__version__ = "{version}"$',
]
"CHANGELOG.md" = [
'^### {version}$',
]
6 changes: 4 additions & 2 deletions pioreactor/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def json_record(self, message: str, extra: dict, record: logging.LogRecord) -> d
extra["level"] = record.levelname
extra["task"] = record.name
extra["timestamp"] = current_utc_timestamp()
extra["source"] = record.source # type: ignore
extra["source"] = getattr(record, "source", None) # type: ignore

if record.exc_info:
extra["message"] += "\n" + self.formatException(record.exc_info)
Expand Down Expand Up @@ -217,7 +217,9 @@ def create_logger(
assert pub_client is not None

# create MQTT handlers for logs table
topic = f"pioreactor/{unit}/{experiment}/logs/{source}" # NOTE: we append the log-level, ex: /debug
topic = (
f"pioreactor/{unit}/{experiment}/logs/{source}" # NOTE: we later append the log-level, ex: /debug
)
mqtt_to_db_handler = MQTTHandler(topic, pub_client)
mqtt_to_db_handler.setLevel(logging.DEBUG)
mqtt_to_db_handler.setFormatter(CustomisedJSONFormatter())
Expand Down

0 comments on commit f9f8235

Please sign in to comment.