ISISMuon / MuonDataLib

0 stars 0 forks source link

Basic filtering #8

Open AnthonyLim23 opened 2 months ago

AnthonyLim23 commented 2 months ago

Filter on basic sample logs (e.g. Temp)

AnthonyLim23 commented 1 month ago

https://community.plotly.com/t/add-vertical-and-movable-lines-in-plot/52362 https://stackoverflow.com/questions/63796489/how-to-create-a-draggable-plotly-object

AnthonyLim23 commented 1 month 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.