Skip to content

Commit a019d8d

Browse files
new svgs
1 parent 68398b8 commit a019d8d

File tree

14 files changed

+226
-37
lines changed

14 files changed

+226
-37
lines changed

core/pioreactor/actions/self_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ def test_positive_correlation_between_temperature_and_heating(
386386
tc._update_heater(0)
387387
measured_correlation = round(correlation(dcs, measured_pcb_temps), 2)
388388
logger.debug(f"Correlation between temp sensor and heating: {measured_correlation}")
389+
logger.debug(f"{measured_pcb_temps=}\n{dcs=}")
389390
assert (
390391
measured_correlation > 0.9
391392
), f"Temp and DC% correlation was not high enough {dcs=}, {measured_pcb_temps=}"

core/pioreactor/calibrations/protocols/pump_duration_based.py

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class IntroConfirm3(SessionStep):
220220
def render(self, ctx: SessionContext) -> CalibrationStep:
221221
step = steps.info(
222222
"Keep hardware safe",
223-
"Move the vial and output end of the tubing away from the Pioreactor hardware.",
223+
"Keep the vial and tubing away from the Pioreactor hardware during this protocol",
224224
)
225225
step.metadata = {
226226
"image": {
@@ -323,7 +323,31 @@ def advance(self, ctx: SessionContext) -> SessionStep | None:
323323
dc = ctx.inputs.float("dc", minimum=0, maximum=100, default=100.0)
324324
ctx.data["hz"] = hz
325325
ctx.data["dc"] = dc
326-
return PrimePumpDuration()
326+
return TubingIntoWater()
327+
328+
329+
class TubingIntoWater(SessionStep):
330+
step_id = "tubing_into_water"
331+
332+
def render(self, ctx: SessionContext) -> CalibrationStep:
333+
pump_device = _get_pump_device(ctx)
334+
step = steps.info(
335+
f"Place tubing ends in water ({pump_device})",
336+
"Place both ends of the tubing into the larger container of water before priming.",
337+
)
338+
step.metadata = {
339+
"image": {
340+
"src": "/static/svgs/tubing-ends-in-water.svg",
341+
"alt": "Place both ends of the tubing into the larger water container.",
342+
"caption": "Both tubing ends should sit below the water line.",
343+
}
344+
}
345+
return step
346+
347+
def advance(self, ctx: SessionContext) -> SessionStep | None:
348+
if ctx.inputs.has_inputs:
349+
return PrimePumpDuration()
350+
return None
327351

328352

329353
class PrimePumpDuration(SessionStep):
@@ -351,7 +375,7 @@ def render(self, ctx: SessionContext) -> CalibrationStep:
351375
tracer_duration = float(ctx.data.get("tracer_duration_s", 1.0))
352376
step = steps.action(
353377
"Tracer run",
354-
f"Running the pump for {tracer_duration:.2f} seconds. While running, hold the tube above the vial. Please measure the volume expelled.",
378+
f"Running the pump for {tracer_duration:.2f} seconds. While running, hold the tube above the vial. Please measure the volume expelled. Ready?",
355379
)
356380
step.metadata = {
357381
"image": {
@@ -404,7 +428,7 @@ def render(self, ctx: SessionContext) -> CalibrationStep:
404428
duration = float(durations[test_index])
405429
step = steps.action(
406430
"Dispense",
407-
f"Next: running the pump for {duration:.2f} seconds. Please measure the volume expelled.",
431+
f"Next: running the pump for {duration:.2f} seconds. Please measure the volume expelled. Ready?",
408432
)
409433
if results:
410434
step.metadata = {
@@ -514,6 +538,7 @@ def advance(self, ctx: SessionContext) -> SessionStep | None:
514538
IntroConfirm1.step_id: IntroConfirm1,
515539
IntroConfirm2.step_id: IntroConfirm2,
516540
IntroConfirm3.step_id: IntroConfirm3,
541+
TubingIntoWater.step_id: TubingIntoWater,
517542
NameInput.step_id: NameInput,
518543
NameOverwriteConfirm.step_id: NameOverwriteConfirm,
519544
VolumeTargets.step_id: VolumeTargets,

core/pioreactor/web/static/asset-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": {
33
"main.css": "/static/static/css/main.9c7a48b7.css",
4-
"main.js": "/static/static/js/main.796aa6ca.js",
4+
"main.js": "/static/static/js/main.5fd7351c.js",
55
"static/media/pioreactor_cloud.webp": "/static/static/media/pioreactor_cloud.b15b29e435797dc69d76.webp",
66
"static/media/roboto-all-500-normal.woff": "/static/static/media/roboto-all-500-normal.0ab669b7a0d19b178f57.woff",
77
"static/media/roboto-all-700-normal.woff": "/static/static/media/roboto-all-700-normal.a457fde362a540fcadff.woff",
@@ -30,10 +30,10 @@
3030
"static/media/roboto-greek-ext-700-normal.woff2": "/static/static/media/roboto-greek-ext-700-normal.bd9854c751441ccc1a70.woff2",
3131
"index.html": "/static/index.html",
3232
"main.9c7a48b7.css.map": "/static/static/css/main.9c7a48b7.css.map",
33-
"main.796aa6ca.js.map": "/static/static/js/main.796aa6ca.js.map"
33+
"main.5fd7351c.js.map": "/static/static/js/main.5fd7351c.js.map"
3434
},
3535
"entrypoints": [
3636
"static/css/main.9c7a48b7.css",
37-
"static/js/main.796aa6ca.js"
37+
"static/js/main.5fd7351c.js"
3838
]
3939
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Pioreactor"/><link rel="apple-touch-icon" href="/static/logo192.png"/><link rel="manifest" href="/static/manifest.json"/><script defer="defer" src="/static/static/js/main.796aa6ca.js"></script><link href="/static/static/css/main.9c7a48b7.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Pioreactor"/><link rel="apple-touch-icon" href="/static/logo192.png"/><link rel="manifest" href="/static/manifest.json"/><script defer="defer" src="/static/static/js/main.5fd7351c.js"></script><link href="/static/static/css/main.9c7a48b7.css" rel="stylesheet"></head><body><div id="root"></div></body></html>

core/pioreactor/web/static/static/js/main.796aa6ca.js renamed to core/pioreactor/web/static/static/js/main.5fd7351c.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/pioreactor/web/static/static/js/main.796aa6ca.js.LICENSE.txt renamed to core/pioreactor/web/static/static/js/main.5fd7351c.js.LICENSE.txt

File renamed without changes.

core/pioreactor/web/static/static/js/main.796aa6ca.js.map renamed to core/pioreactor/web/static/static/js/main.5fd7351c.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/pioreactor/web/static/svgs/pump-measure-volume.svg

Lines changed: 22 additions & 8 deletions
Loading
Lines changed: 24 additions & 0 deletions
Loading
Lines changed: 12 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)