Rework Sequence so what we can executed them later
There is a huge difference between scan and sequence which makes the 2 difficult to interchange.
- You create a scan that you can execute later
- You can't do the same with a sequence
Which also mean
- A scan is self contained, by introspection to can know everything about it.
- It's not the case with a sequence, because the main code of the sequence does not describe the sequence, but execute it.
One result for example, is you have to change some stuffs if you have to create sequence of sequence.
Here is a scan
The way to write a scan is pure description -> you can execute it later.
s = ascan(..., run=False)
If i want to execute something before or later you can do it by description.
s.add_preset(HowlingOfWolvesAtStart())
Here is a sequence
But the way to write a sequence already execute the sequence.
sequence = Sequence(title="tiling sequence", scan_info=scan_info)
with sequence.sequence_context() as scan_seq:
dark = sct(..., run=False)
scan_seq.add(dark)
dark.run()
flat = sct(..., run=False)
scan_seq.add(flat)
flat.run()
proj = sct(..., run=False)
scan_seq.add(proj)
proj.run()