Get number of CCVs with the same conditions
For pages like Side-by-side
, BadPixels_trend
, Like_reportservice
we show multiple CCVs without considering the conditions. This means that we are plotting CCVs side by side with different conditions.
This is not useful. This issue is for collecting the CCVs based on the conditions.
One way to do it is by filtering the CCVs before retrieving them
- For example, get one CCV (get_calibration_constant_by_detector_condition) -> get the calibration constant for this CCV -> get the list of connected CCVs -> get the last N CCVs. The issue with this method is that a Calibration Constant is different when you introduce a new deviation for one of the conditions. (TODO give an example)
The second way is to loop over timestamps and get the needed CCVs. This of course can have a bad performance if you need a lot of CCVs. After speaking with Jola she suggested the same way because:
- The average needed CCVs can be around 10-15
- It would be useful to define a window of CCV timestamp of interest and get a distributed number of CCVs along this window. For example: get 10 CCVs between 01.01.2022 - 01.01.2023 -> split this time window into 10 timestamps -> get 10 CCVs in a loop -> this can lead to less than 10 CCVs but it is not a problem as the operator can adjust the time-window based on their needs.