Skip to content

Commit 17c124c

Browse files
bump version
1 parent 0e051b7 commit 17c124c

File tree

5 files changed

+44
-13
lines changed

5 files changed

+44
-13
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
### 25.3.31
2+
3+
#### Enhancements
4+
5+
- **Support for Pioreactor 40mL**
6+
- UI and backend now accommodates the new Pioreactor 40mL. Change the Pioreactor model on the Inventory page.
7+
- **Device models and versions now tracked in the database**
8+
- Models and versions for each Pioreactor are now stored in the `worker` table.
9+
We're deprecating the `[pioreactor]` section in `config.ini`. You can manage models and versions on the **Inventory** page.
10+
- **Improvements to dosing automation settings**:
11+
- When starting a dosing automation, you can set the initial and max culture volumes.
12+
13+
#### Bug Fixes
14+
15+
- Fixed occasional crash on the **Overview** page in the UI.
16+
- UI page `/pioreactors/<some_unit>` now uses that unit's specific configuration from `config_<some_unit>.ini`.
17+
18+
119
### 25.3.5
220

321
- Fix for updating across cluster and leader saying it failed

pioreactorui/api.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,10 @@ def run_job_on_unit_in_experiment(
203203
(experiment, pioreactor_unit),
204204
one=True,
205205
)
206-
assert isinstance(worker, dict)
207206
if worker is None:
208207
assigned_workers = []
209208
else:
210-
assigned_workers = [worker]
211-
212-
assert isinstance(assigned_workers, list)
209+
assigned_workers = [worker] # type: ignore
213210

214211
if len(assigned_workers) == 0:
215212
abort(404, f"Worker(s) {pioreactor_unit} not found or not active.")

pioreactorui/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44

55
# pioreactorui version
6-
__version__ = "25.3.5"
6+
__version__ = "25.3.31"

tests/example_data.sql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ INSERT INTO experiments (experiment, created_at, description, media_used, organi
44
('exp2', '2023-10-02T15:00:00Z', 'Second experiment', 'Minimal media', 'Yeast'),
55
('exp3', '2023-10-03T09:00:00Z', 'Third experiment', 'Rich media', 'Bacteria');
66

7-
INSERT INTO workers (pioreactor_unit, added_at, is_active) VALUES
8-
('unit1', '2023-10-01T10:00:00Z', 1),
9-
('unit2', '2023-10-01T11:00:00Z', 1),
10-
('unit3', '2023-10-02T10:00:00Z', 1),
11-
('unit4', '2023-10-03T08:00:00Z', 0);
7+
INSERT INTO workers (pioreactor_unit, added_at, is_active, model_name, model_version) VALUES
8+
('unit1', '2023-10-01T10:00:00Z', 1, "pioreactor_20ml", "1.1"),
9+
('unit2', '2023-10-01T11:00:00Z', 1, "pioreactor_40ml", "1.0"),
10+
('unit3', '2023-10-02T10:00:00Z', 1, "pioreactor_40ml", "1.0"),
11+
('unit4', '2023-10-03T08:00:00Z', 0, "pioreactor_40ml", "1.0");
1212

1313
INSERT INTO experiment_worker_assignments (pioreactor_unit, experiment, assigned_at) VALUES
1414
('unit1', 'exp1', '2023-10-01T12:00:00Z'),

tests/test_app.py

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,12 @@ def test_broadcast_in_manage_all(client):
281281
assert bucket[0].json == {
282282
"args": [],
283283
"options": {"target_rpm": 10},
284-
"env": {"EXPERIMENT": "exp1", "ACTIVE": "1"},
284+
"env": {
285+
"EXPERIMENT": "exp1",
286+
"ACTIVE": "1",
287+
"MODEL_NAME": "pioreactor_20ml",
288+
"MODEL_VERSION": "1.1",
289+
},
285290
}
286291

287292
# Remove unit2 from exp1
@@ -304,7 +309,12 @@ def test_run_job(client):
304309
assert bucket[0].json == {
305310
"args": [],
306311
"options": {"target_rpm": 10},
307-
"env": {"EXPERIMENT": "exp1", "ACTIVE": "1"},
312+
"env": {
313+
"EXPERIMENT": "exp1",
314+
"ACTIVE": "1",
315+
"MODEL_NAME": "pioreactor_20ml",
316+
"MODEL_VERSION": "1.1",
317+
},
308318
}
309319

310320
# wrong experiment!
@@ -336,7 +346,13 @@ def test_run_job_with_job_source(client):
336346
assert bucket[0].json == {
337347
"args": [],
338348
"options": {"target_rpm": 10},
339-
"env": {"EXPERIMENT": "exp1", "ACTIVE": "1", "JOB_SOURCE": "experiment_profile"},
349+
"env": {
350+
"EXPERIMENT": "exp1",
351+
"ACTIVE": "1",
352+
"JOB_SOURCE": "experiment_profile",
353+
"MODEL_NAME": "pioreactor_20ml",
354+
"MODEL_VERSION": "1.1",
355+
},
340356
}
341357

342358

0 commit comments

Comments
 (0)