The logic for adding background scans to the queue can be made more efficient and robust. Currently we add whatever scans are needed for every task and then remove any repeats. We can be smarter by not adding scans that already exist in the queue, and combining background scans, for example when they are the same capillary type with slightly different temperatures.

Not covered in this flowchart is the need to remove background experiments from the queue if they are no longer required, for example if the experiment that required it has been removed.
Originally posted by @jacob-williamson in #73 (comment)
The logic for adding background scans to the queue can be made more efficient and robust. Currently we add whatever scans are needed for every task and then remove any repeats. We can be smarter by not adding scans that already exist in the queue, and combining background scans, for example when they are the same capillary type with slightly different temperatures.

Not covered in this flowchart is the need to remove background experiments from the queue if they are no longer required, for example if the experiment that required it has been removed.
Originally posted by @jacob-williamson in #73 (comment)