Skip to content

Commit c91882d

Browse files
time syntax preffered
1 parent 54b0c87 commit c91882d

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

developer-guide/02-important-concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hide_table_of_contents: true
66

77
### Operating system
88

9-
The Pioreactor runs ontop of a Raspberry Pi. We provide the operating system that runs on the Raspberry Pi as downloadable images. The operating system the latest version of _Raspberry Pi OS_ (a fork of _Debian Bookworm_ at the time of writing) with our custom modifications.
9+
The Pioreactor runs ontop of a Raspberry Pi. We provide the operating system that runs on the Raspberry Pi as downloadable images. The operating system the latest version of _Raspberry Pi OS_ (a fork of _Debian Trixie_ at the time of writing) with our custom modifications.
1010

1111
### An initial mental model of Pioreactor software
1212

user-guide/03-Extending your Pioreactor/04-Experiment Profiles/10-experiment-profiles-schema.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ common:
2828
stirring:
2929
actions:
3030
- type: start
31-
t: 0
31+
t: 0s
3232
3333
pioreactors:
3434
pio001:
3535
jobs:
3636
temperature_automation:
3737
actions:
3838
- type: start
39-
t: 0.0
39+
t: 0s
4040
options:
4141
automation_name: thermostat
4242
target_temperature: 35
@@ -45,7 +45,7 @@ pioreactors:
4545
temperature_automation:
4646
actions:
4747
- type: start
48-
t: 0.0
48+
t: 0s
4949
options:
5050
automation_name: thermostat
5151
target_temperature: 32
@@ -77,7 +77,7 @@ fetches the `target_rpm` from `pio1`'s stirring job at execution time, compares
7777
stirring:
7878
actions:
7979
- type: update
80-
t: 6.0
80+
t: 6h
8181
if: pio1:stirring:target_rpm >= 500
8282
options:
8383
target_rpm: 400
@@ -89,7 +89,7 @@ You can also compare against strings. For example, to stop a job if the temperat
8989
temperature_automation:
9090
actions:
9191
- type: stop
92-
t: 6.0
92+
t: 6h
9393
if: pio1:temperature_automation:automation_name == thermostat
9494
```
9595

@@ -99,7 +99,7 @@ Many published settings are nested JSON blobs. Use `.` to index into them:
9999
temperature_automation:
100100
actions:
101101
- type: update
102-
t: 6.0
102+
t: 6h
103103
if: pio1:temperature_automation:temperature.temperature <= 30
104104
options:
105105
target_temperature: 32
@@ -116,11 +116,11 @@ pioreactors:
116116
stirring:
117117
actions:
118118
- type: start
119-
t: 0
119+
t: 0s
120120
options:
121121
target_rpm: 500
122122
- type: update
123-
t: 12
123+
t: 12h
124124
options:
125125
target_rpm: ${{ worker1:stirring:target_rpm + 50 }}
126126
```
@@ -129,7 +129,7 @@ You can reference other jobs, too. The example below adjusts stirring based on o
129129

130130
```yaml
131131
- type: update
132-
t: 12
132+
t: 12h
133133
options:
134134
target_rpm: ${{ worker1:stirring:target_rpm + worker1:od_reading:od2.od * 10 }}
135135
```
@@ -150,7 +150,7 @@ common:
150150
stirring:
151151
actions:
152152
- type: update
153-
t: 6
153+
t: 6h
154154
if: ${{ ::stirring:target_rpm <= 500 }}
155155
options:
156156
target_rpm: 500
@@ -164,7 +164,7 @@ common:
164164
stirring:
165165
actions:
166166
- type: update
167-
t: 6
167+
t: 6h
168168
if: ${{ ::stirring:target_rpm <= 500 }}
169169
options:
170170
target_rpm: ${{ ::stirring:target_rpm + 10 * ::od_reading:od2.od }}
@@ -227,10 +227,10 @@ common:
227227
actions:
228228
- type: when
229229
wait_until: ${{ ::od_reading:od2.od > 2.0 }}
230-
t: 0
230+
t: 0s
231231
actions:
232232
- type: start
233-
t: 0
233+
t: 0s
234234
options:
235235
automation_name: chemostat
236236
volume: 0.6
@@ -248,11 +248,11 @@ common:
248248

249249
```yaml
250250
- type: repeat
251-
t: 6.0 # start looping after 6 hours
251+
t: 6h # start looping after 6 hours
252252
every: 0.5h # run every 30 minutes
253253
actions:
254254
- type: update
255-
t: 0.0
255+
t: 0s
256256
...
257257
- type: update
258258
t: 0.1h
@@ -271,7 +271,7 @@ A coarse turbidostat example:
271271
add_media:
272272
actions:
273273
- type: repeat
274-
t: 6.0
274+
t: 6h
275275
every: 9s
276276
while: ${{ worker1:od_reading:od2.od > 3.0 }}
277277
actions:
@@ -281,7 +281,7 @@ add_media:
281281
remove_waste:
282282
actions:
283283
- type: repeat
284-
t: 6.0
284+
t: 6h
285285
every: 9s
286286
while: ${{ worker1:od_reading:od2.od > 3.0 }}
287287
actions:
@@ -305,12 +305,12 @@ common:
305305
temperature_automation:
306306
actions:
307307
- type: update
308-
t: 12.0
308+
t: 12h
309309
if: ${{ ::od_reading:od2.od < od_threshold }}
310310
options:
311311
target_temperature: ${{ stationary_phase_temp }}
312312
- type: update
313-
t: 12.0
313+
t: 12h
314314
if: ${{ ::od_reading:od2.od >= od_threshold }}
315315
options:
316316
target_temperature: ${{ growth_phase_temp }}
@@ -328,7 +328,7 @@ common:
328328
temperature_automation:
329329
actions:
330330
- type: start
331-
t: 0.0
331+
t: 0s
332332
options:
333333
automation_name: thermostat
334334
target_temperature: 30
@@ -341,7 +341,7 @@ common:
341341
temperature_automation:
342342
actions:
343343
- type: start
344-
t: 0.0
344+
t: 0s
345345
options:
346346
automation_name: thermostat
347347
target_temperature: 30

0 commit comments

Comments
 (0)