hey there!
I have cloned your code and tried using it with an event dataset. However, I encountered an issue with the read_h5_event_components function. The function attempts to extract the ts dataset from the events group, but my dataset contains a dataset named t instead of ts.
As a result, the function throws an exception because it cannot find the ts dataset.
and as a solution i think it would be good to add another condition to check this type of timestamp dataset name as well,
Thanks for your great work and your attention!