Skip to content

Commit 68398b8

Browse files
new svgs
1 parent 5db0801 commit 68398b8

21 files changed

+353
-101
lines changed

core/pioreactor/calibrations/protocols/pump_duration_based.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,10 +349,18 @@ class TracerRun(SessionStep):
349349

350350
def render(self, ctx: SessionContext) -> CalibrationStep:
351351
tracer_duration = float(ctx.data.get("tracer_duration_s", 1.0))
352-
return steps.action(
352+
step = steps.action(
353353
"Tracer run",
354-
f"Running the pump for {tracer_duration:.2f} seconds. Please measure the volume expelled.",
354+
f"Running the pump for {tracer_duration:.2f} seconds. While running, hold the tube above the vial. Please measure the volume expelled.",
355355
)
356+
step.metadata = {
357+
"image": {
358+
"src": "/static/svgs/pump-measure-volume.svg",
359+
"alt": "Run the pump briefly and measure the volume expelled using a scale.",
360+
"caption": "Measure the volume expelled on a scale or graduated cylinder.",
361+
}
362+
}
363+
return step
356364

357365
def advance(self, ctx: SessionContext) -> SessionStep | None:
358366
tracer_duration = float(ctx.data.get("tracer_duration_s", 1.0))
@@ -407,6 +415,14 @@ def render(self, ctx: SessionContext) -> CalibrationStep:
407415
chart = _build_duration_chart_metadata(ctx)
408416
if chart:
409417
step.metadata = {**step.metadata, "chart": chart} if step.metadata else {"chart": chart}
418+
else:
419+
step.metadata = {
420+
"image": {
421+
"src": "/static/svgs/pump-measure-volume.svg",
422+
"alt": "Run the pump briefly and measure the volume expelled using a scale.",
423+
"caption": "Measure the volume expelled on a scale or graduated cylinder.",
424+
}
425+
}
410426
return step
411427

412428
def advance(self, ctx: SessionContext) -> SessionStep | None:

core/pioreactor/calibrations/protocols/stirring_dc_based.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,19 @@ class Intro(SessionStep):
212212
step_id = "intro"
213213

214214
def render(self, ctx: SessionContext) -> CalibrationStep:
215-
return steps.info(
215+
step = steps.info(
216216
"Stirring DC-based calibration",
217-
"Insert a vial with a stir bar. Water is fine. Stirring must be off before starting.",
217+
"Insert a vial with a stir bar and the liquid volume you plan to use (water is fine). "
218+
"Stirring must be off before starting.",
218219
)
220+
step.metadata = {
221+
"image": {
222+
"src": "/static/svgs/prepare-vial-arrow-pioreactor.svg",
223+
"alt": "Insert a vial with a stir bar and the liquid volume you plan to use.",
224+
"caption": "Insert a vial with a stir bar and the liquid volume you plan to use.",
225+
}
226+
}
227+
return step
219228

220229
def advance(self, ctx: SessionContext) -> SessionStep | None:
221230
if ctx.inputs.has_inputs:

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.ffc41f89.js",
4+
"main.js": "/static/static/js/main.796aa6ca.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.ffc41f89.js.map": "/static/static/js/main.ffc41f89.js.map"
33+
"main.796aa6ca.js.map": "/static/static/js/main.796aa6ca.js.map"
3434
},
3535
"entrypoints": [
3636
"static/css/main.9c7a48b7.css",
37-
"static/js/main.ffc41f89.js"
37+
"static/js/main.796aa6ca.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.ffc41f89.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.796aa6ca.js"></script><link href="/static/static/css/main.9c7a48b7.css" rel="stylesheet"></head><body><div id="root"></div></body></html>

core/pioreactor/web/static/pioreactor_icon.svg

Lines changed: 0 additions & 11 deletions
This file was deleted.

core/pioreactor/web/static/static/js/main.ffc41f89.js renamed to core/pioreactor/web/static/static/js/main.796aa6ca.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.ffc41f89.js.LICENSE.txt renamed to core/pioreactor/web/static/static/js/main.796aa6ca.js.LICENSE.txt

File renamed without changes.

core/pioreactor/web/static/static/js/main.ffc41f89.js.map renamed to core/pioreactor/web/static/static/js/main.796aa6ca.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.
Lines changed: 43 additions & 0 deletions
Loading
Lines changed: 27 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)