Closed jakobhenrichs closed 1 year ago
Hi,
To the first (uproot) problem seems to be related with the sampling rate being None
in the mattak "file" (or rather being set to None during read-out if it was not stored or could be read). If you checkout this branch (https://github.com/nu-radio/NuRadioMC/pull/531) you should get a more meaningful error message. I also added the overwrite_sampling_rate
which allows you to set the sampling rate by hand and read these "broken" files.
To the second (pyroot) problem: This indeed seems to be a NuRadioMC issue, let me see if I can reproduce and fix it
Alright, the second issue should be fixed with the newest commit in https://github.com/nu-radio/NuRadioMC/pull/531
LMK if you get any other problem
Thank you! Using the newest commit (https://github.com/nu-radio/NuRadioMC/pull/531) reading data with both backends works.
I downloaded and built the newest version of Mattak and tried to read some RNO-G data with the NuRadioMC-Mattak reader
readRNOGDataMattak.py
. For both backends, 'uproot' and 'pyroot', I get (different) errors and cannot read the data.uproot:![Screenshot from 2023-05-03 17-15-55](https://user-images.githubusercontent.com/100706809/235960437-9c7e7022-fbc8-416d-aaf5-2199987b776e.png)
pyroot:![Screenshot from 2023-05-03 17-15-38](https://user-images.githubusercontent.com/100706809/235960441-4cb28d9e-fa43-4654-b7ab-b23d04b39369.png)
I have no time to look into this, but my suspicious is that the problem is on the Mattak side.