Allow for multiple scans of same type in complex analysis
Currently when checking out scans for complex analysis (i.e. TUNING), the user can only select one scan of each type for the analysis. But we run the same scan twice in some procedures, for example the TUNING test, where the global threshold tune and ToT scan are performed twice. This is not a problem now as these scans are not currently being used in the analysis, but in the future we will use them (at least the ToT scan results will be used).
From @hoide :
So far still only a single run per scan type is accepted in the UI, but the second scan's slot can be created. It is specified as a list:
"TUNING":{
"scantypes":["std_tune_globalthreshold","std_thresholdscan_hr","std_tune_pixelthreshold","std_retune_globalthreshold","std_retune_pixelthreshold","std_thresholdscan_hd","std_totscan"]
}
then appending a second global threshold should work out. I only need to make sure that the temporary cache directory won't have name collision.
Once we add functionality to checkout more than one scan of the same type, we also need to pass some information to the analysis to tell these scans apart. For example the timestamp would suffice.