You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: user-guide/03-Extending your Pioreactor/04-Experiment Profiles/02-create-edit-experiment-profiles.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ common:
29
29
stirring:
30
30
actions:
31
31
- type: start
32
-
hours_elapsed: 0
32
+
t: 0
33
33
options:
34
34
target_rpm: 600
35
35
@@ -39,9 +39,9 @@ pioreactors:
39
39
od_reading:
40
40
actions:
41
41
- type: start
42
-
hours_elapsed: 0
42
+
t: 0
43
43
- type: stop
44
-
hours_elapsed: 1
44
+
t: 1h
45
45
```
46
46
47
47
4. Click **Search jobs and automations** if you want to insert additional sample actions—results paste directly into the editor.
@@ -51,9 +51,9 @@ pioreactors:
51
51
52
52
### How the example works
53
53
54
-
- `common` tasks run for **every** worker in the experiment. Here we start the stirring job everywhere at `0` hours elapsed.
54
+
- `common` tasks run for **every** worker in the experiment. Here we start the stirring job everywhere at `0` time elapsed.
55
55
- `pioreactors`lets you target individual workers. Swap `pio001` for your unit name (the UI autocompletes known workers) to start and stop OD readings only on that Pioreactor.
56
-
- `hours_elapsed`is relative to when the profile starts. Setting `1` means "one hour after I launch this profile".
56
+
- `t`is relative to when the profile starts. Use hours by default (`1` means "one hour after launch") or add units like `30s`, `2m`, `1h`, or `2d`.
57
57
- You can add as many jobs as you like. Keep related actions in chronological order so they are easy to read later.
Copy file name to clipboardExpand all lines: user-guide/03-Extending your Pioreactor/04-Experiment Profiles/10-experiment-profiles-schema.md
+51-46Lines changed: 51 additions & 46 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,15 +28,15 @@ common:
28
28
stirring:
29
29
actions:
30
30
- type: start
31
-
hours_elapsed: 0
31
+
t: 0
32
32
33
33
pioreactors:
34
34
pio001:
35
35
jobs:
36
36
temperature_automation:
37
37
actions:
38
38
- type: start
39
-
hours_elapsed: 0.0
39
+
t: 0.0
40
40
options:
41
41
automation_name: thermostat
42
42
target_temperature: 35
@@ -45,21 +45,21 @@ pioreactors:
45
45
temperature_automation:
46
46
actions:
47
47
- type: start
48
-
hours_elapsed: 0.0
48
+
t: 0.0
49
49
options:
50
50
automation_name: thermostat
51
51
target_temperature: 32
52
52
```
53
53
54
-
### `hours_elapsed` refers to the profile start time
54
+
### Times refer to the profile start time
55
55
56
-
When writing a profile, note that the `hours_elapsed` field refers to when the experiment profile started, and not when the experiment started.
56
+
When writing a profile, note that any `t` field refers to when the experiment profile started, and not when the experiment started. Use either a bare number (interpreted in hours) or a string with a unit suffix (`s`, `m`, `h`, or `d`, such as `30s`, `0.5h`, or `2d`); negative values are rejected.
57
57
58
58
## Conditionals and expressions
59
59
60
60
### How the `if` directive works
61
61
62
-
The `if` directive can be included in any action to conditionally execute it or not. The expression is evaluated _when the action is scheduled_ (that is, after `hours_elapsed` hours have passed since the profile started).
62
+
The `if` directive can be included in any action to conditionally execute it or not. The expression is evaluated _when the action is scheduled_ (that is, after `t` time has passed since the profile started).
63
63
64
64
The `if` directive supports the boolean operators `and`, `or`, and `not`, parentheses, the literals `True` and `False`, comparisons (`==`, `>=`, `<=`, `>`, `<`), and basic arithmetic on floats (`+`, `-`, `*`, `/`). Strings must be bare words without spaces.
65
65
@@ -77,7 +77,7 @@ fetches the `target_rpm` from `pio1`'s stirring job at execution time, compares
77
77
stirring:
78
78
actions:
79
79
- type: update
80
-
hours_elapsed: 6.0
80
+
t: 6.0
81
81
if: pio1:stirring:target_rpm >= 500
82
82
options:
83
83
target_rpm: 400
@@ -89,7 +89,7 @@ You can also compare against strings. For example, to stop a job if the temperat
0 commit comments