From 8bd9af70abed6754f781588e3870ddb00bb16a42 Mon Sep 17 00:00:00 2001 From: ivoryzhang Date: Tue, 24 Nov 2026 17:18:14 -0700 Subject: [PATCH] fix(hub): the BioShake entry offers the models PyLabRobot can make The 1.0.0b3 Hub entry still defaulted model to BioShake3000T and listed models PyLabRobot 1.0.0b1 has no resource definition for, which the driver refuses since #8. It now defaults to BioShakeQ1 and names the four it can make. Applied to the live Hub row (id 420) on 2026-11-24; this keeps update-1.0.0b3.sql the same as what is there. Co-Authored-By: Claude Opus 5.5 --- hub/hub_entries.py | 10 ++++++---- hub/update-1.0.0b3.sql | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/hub/hub_entries.py b/hub/hub_entries.py index 3900146..8a02cec 100644 --- a/hub/hub_entries.py +++ b/hub/hub_entries.py @@ -249,10 +249,12 @@ def device(id_, cls, path, schema, extra, args, text, needs=None): "A Byonoy Luminescence 96 Automate through PyLabRobot 1.0 (ByonoyLuminescence96), over USB. " + READS + OURS + "for the real one, untick simulated. "), device(420, "BioShake", "plr_ivoryos.qinstruments", "bioshake", "serial", - [arg("port", "str"), arg("model", "str", "BioShake3000T")], - "A QInstruments BioShake (model: BioShake3000, BioShake3000T, BioShake3000Elm, BioShakeD30TElm, BioShakeQ1, " - "Heatplate, ColdPlate, ...) through PyLabRobot 1.0 (qinstruments.BioShake): shake, set_temperature, " - "lock_plate, ... " + OURS + "for the real one, untick simulated and give its serial port. "), + [arg("port", "str"), arg("model", "str", "BioShakeQ1")], + "A QInstruments BioShake through PyLabRobot 1.0 (qinstruments.BioShake): shake, set_temperature, lock_plate, " + "... model is one of the four PyLabRobot 1.0.0b1 can make: BioShakeQ1 (the default: shakes, locks, heats " + "and cools), BioShake3000 (shakes), BioShake3000Elm or BioShake3000ElmDWP (shake and lock); PyLabRobot " + "names more but has no resource definition for them yet. " + OURS + "for the real one, untick simulated " + "and give its serial port. "), device(188, "InhecoThermoShake", "plr_ivoryos.inheco", "thermoshake", "hid", [arg("index", "int", 1), arg("serial_number", "str"), arg("model", "str", "thermoshake")], "An Inheco ThermoShake (model: thermoshake, thermoshake_ac or thermoshake_rm) on a TEC control box, through " diff --git a/hub/update-1.0.0b3.sql b/hub/update-1.0.0b3.sql index 8a890a8..22bf5e3 100644 --- a/hub/update-1.0.0b3.sql +++ b/hub/update-1.0.0b3.sql @@ -302,7 +302,7 @@ select 420, '0.2', $t$plr-ivoryos[serial]>=0.2.0,<1$t$, '{"pylabrobot": "<1"}':: 'plr-ivoryos 0.2 on PyLabRobot 0.x. Workflows made with it need redoing on 1.0.', false where not exists (select 1 from module_versions where module_id = 420 and version = '0.2'); -update modules set pip_name = $t$plr-ivoryos[serial]==1.0.0b3$t$, module_name = $t$BioShake$t$, module_path = $t$plr_ivoryos.qinstruments$t$, init_args = $j$[{"name": "simulated", "type": "bool", "default": true}, {"name": "port", "type": "str"}, {"name": "model", "type": "str", "default": "BioShake3000T"}, {"name": "step_delay_s", "type": "float", "default": 0}]$j$::jsonb, schema = (select s->$t$BioShake$t$ from _schemas), schema_source = 'introspection', updated_at = now(), description = $t$A QInstruments BioShake (model: BioShake3000, BioShake3000T, BioShake3000Elm, BioShakeD30TElm, BioShakeQ1, Heatplate, ColdPlate, ...) through PyLabRobot 1.0 (qinstruments.BioShake): shake, set_temperature, lock_plate, ... Simulated (the default) is plr-ivoryos's own simulator for it, since PyLabRobot 1.0.0b1 has none; for the real one, untick simulated and give its serial port. Beta: pinned to PyLabRobot 1.0.0b1, run in simulation only. Decks on one computer share one Python environment, so this replaces the PyLabRobot that any older plr-ivoryos driver there needs, and installs beside any plr-ivoryos 1.0 liquid handler.$t$ where id = 420; +update modules set pip_name = $t$plr-ivoryos[serial]==1.0.0b3$t$, module_name = $t$BioShake$t$, module_path = $t$plr_ivoryos.qinstruments$t$, init_args = $j$[{"name": "simulated", "type": "bool", "default": true}, {"name": "port", "type": "str"}, {"name": "model", "type": "str", "default": "BioShakeQ1"}, {"name": "step_delay_s", "type": "float", "default": 0}]$j$::jsonb, schema = (select s->$t$BioShake$t$ from _schemas), schema_source = 'introspection', updated_at = now(), description = $t$A QInstruments BioShake through PyLabRobot 1.0 (qinstruments.BioShake): shake, set_temperature, lock_plate, ... model is one of the four PyLabRobot 1.0.0b1 can make: BioShakeQ1 (the default: shakes, locks, heats and cools), BioShake3000 (shakes), BioShake3000Elm or BioShake3000ElmDWP (shake and lock); PyLabRobot names more but has no resource definition for them yet. Simulated (the default) is plr-ivoryos's own simulator for it, since PyLabRobot 1.0.0b1 has none; for the real one, untick simulated and give its serial port. Beta: pinned to PyLabRobot 1.0.0b1, run in simulation only. Decks on one computer share one Python environment, so this replaces the PyLabRobot that any older plr-ivoryos driver there needs, and installs beside any plr-ivoryos 1.0 liquid handler.$t$ where id = 420; update module_versions set is_current = false where module_id = 420;