Add event timestamps to the trigger_statistics.py output in the DQM#308
Conversation
- trigger_statistics.py: add arrays of event timestamps to get_results(), to be written into the database
- trigger_statistics.py: convert event timestamps in output directly to arrays
- trigger_statistics.py: add arrays of event ids to get_results(), to be written into the database
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #308 +/- ##
==========================================
- Coverage 48.95% 48.94% -0.02%
==========================================
Files 85 85
Lines 7734 7736 +2
==========================================
Hits 3786 3786
- Misses 3948 3950 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jlenain
left a comment
There was a problem hiding this comment.
Thanks a lot, @alessandromontanari !
|
Argh, we may need to fix this PR, @alessandromontanari ! |
Ok, that's on me. I'll check it! |
|
I am afraid there is also something else when writing the DQM output, a local run gives me two following warnings: 100%|██████████████████████████████████████████████████████████████████████████| 6080/6080 [01:21<00:00, 74.77ev/s]
2026-05-05 09:15:21,193 WARNING [nectarchain.dqm.dqm_summary_processor] (dqm_summary_processor.write_all_results): Caught TypeError, skipping TRIGGER-EVENT-TIMESTAMPS. Details: Column 'col0' contains unsupported object types or mixed types: {dtype('O')}
2026-05-05 09:15:21,425 WARNING [nectarchain.dqm.dqm_summary_processor] (dqm_summary_processor.write_all_results): Caught TypeError, skipping TRIGGER-EVENT-IDS. Details: Column 'col0' contains unsupported object types or mixed types: {dtype('O')} |
I'm on it, I should be done by today afternoon. |
OK, thank you very much, @alessandromontanari ! |
This PR adds two subdictionaries to the results dictionary output of get_results() in trigger_statistics.py. This is needed to write into the database for future display on the DQM web app.