|
38 | 38 | import pbutils
|
39 | 39 |
|
40 | 40 | class OptPrio:
|
41 |
| - incubation = Min(priority=7, weight=1) |
42 |
| - wash_to_disp = Min(priority=6, weight=1) |
43 |
| - incu_slack = Min(priority=6, weight=1) |
44 |
| - without_lid = Min(priority=4, weight=1) |
45 |
| - total_time = Min(priority=3, weight=1) |
46 |
| - squeeze_steps = Min(priority=2, weight=1) |
47 |
| - inside_incu = Max(priority=1, weight=0) |
| 41 | + incubation = Min(priority=8, weight=1) |
| 42 | + wash_to_disp = Min(priority=7, weight=1) |
| 43 | + total_time = Min(priority=6, weight=1) |
| 44 | + without_lid = Min(priority=5, weight=1) |
| 45 | + inside_incu = Max(priority=4, weight=1) |
| 46 | + squeeze_steps = Min(priority=3, weight=1) |
| 47 | + |
| 48 | + # incu_slack = Min(priority=6, weight=1) |
48 | 49 |
|
49 | 50 | @dataclass(frozen=True)
|
50 | 51 | class Plate:
|
@@ -535,6 +536,7 @@ def paint_batch(batch: list[Plate], protocol_config: ProtocolConfig) -> Command:
|
535 | 536 | ]
|
536 | 537 |
|
537 | 538 | post_cmds = [
|
| 539 | + Duration(f'batch {batch_index}', OptPrio.total_time), |
538 | 540 | ]
|
539 | 541 |
|
540 | 542 | chunks: dict[Desc, Iterable[Command]] = {}
|
@@ -759,7 +761,11 @@ def paint_batch(batch: list[Plate], protocol_config: ProtocolConfig) -> Command:
|
759 | 761 | Fork(
|
760 | 762 | Seq(
|
761 | 763 | *(wash_delay if not step.wash and not step.blue else []),
|
762 |
| - Duration(f'{plate_desc} transfer {ix}', OptPrio.wash_to_disp), |
| 764 | + *( |
| 765 | + [Duration(f'{plate_desc} transfer {ix}', OptPrio.wash_to_disp)] |
| 766 | + if step.wash or step.blue else |
| 767 | + [] |
| 768 | + ), |
763 | 769 | DispCmd('RunValidated', step.disp),
|
764 | 770 | Checkpoint(f'{plate_desc} incubation {ix}'),
|
765 | 771 | )
|
|
0 commit comments