Use Lifetime::QA for sampled quantities#7383
Conversation
|
Is it safe to just overwrite it? Shouldn't we request the developer to set it, and give a failure if not? Otherwise I think this can be confusing? |
|
@knopers8 @Barthelemy in order to correctly account for how many timeframes have been processed, we need to have all OutputSpec which are associated to sampled data marked as Lifetime::QA. While this will not change how the data is processed, it will make sure it will not be accounted to consider a timeframe "complete" (because only a fraction of the timeframes have it, by definition). Do you see any problems with doing it? |
|
@davidrohr see the other message. It Lifetime::Timeframe and Lifetime::QA should be identical in terms of processing, QA simply means that the data is sampled or created once in a while (like in the case of Analysis histograms). |
|
Then why do we call it Lifetime::QA? Can we rename it to Lifetime::Sampled or something like that? |
|
That's what I called it historically at the dawn of DPL. I am happy to rename it, however I do not like "Sampled" much, since it needs to apply also for histograms, which fit "Accumulated" more than "Sampled". Maybe "Occasional"? |
|
In some sense I would call it Optional, but we have optional already for another purpose. What is actually exactly the difference? |
|
Hi, |
|
Hi @Barthelemy : this is actually on the critical path for commissioning, so I would not wait till Monday. Worst case we can revert. But it seems this breaks the DataSampling ctest. That must obviously be fixed. |
|
Are you sure you are on the right branch? |
Ok, I think that I fixed some of the failing tests. Although, @knopers8 will have to review it when he is back. However for lines 112 and 113 I don't know how to fix it. If I put a lifetime, then the subspec is wrong, if I don't put it, it fails. |
This will make sure that sampled data will not be used to do counting of in-fly timeframes.
|
I fixed the remaining tests. |
|
The test is still failing: |
|
ok, forgot this one. |
and it is not the DDS test :) |
|
hopefully it is ok now |
|
So it seems ok now. @Barthelemy Can we merge? |
|
I think this should be fine, but I will immediately contact you if I see something not working anymore. |
This will make sure that sampled data will not be used to do counting of in-fly timeframes. Co-authored-by: Barthelemy <barthelemy.von.haller@cern.ch>
This will make sure that sampled data will not be used to do counting
of in-fly timeframes.