Open AnthonyLim23 opened 2 months ago
To unit test this we can create some data with just 4 frames and one detector. Each frame will see a constant rate of events (so the average count for the frame is known), by selecting the values carefully we can have predictable and unique values for every combination of filters. To make this less confusing I will label the frames a to d.
Frame a would have a value of 1, and frame b a value of 2. So if we filtered out frame c and d, we get a total of 3. So we cannot use 3. That mean frame c should have a value of 4. So the combinations of frames give: a = 1 b = 2 a+b = 3 c = 4 a+c = 5 b+c = 6 a+b+c = 7
so frame d should have a value of 8.
Filter on basic sample logs (e.g. Temp)