Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LED calibration batch 2, DAQ timestamp and truncation development #64

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

jurenag
Copy link
Member

@jurenag jurenag commented Oct 24, 2024

This pull requests contain

  1. Some development in the LED calibration using the second batch data (acquired on 26/07)
  2. Addition of the 'daq_window_timestamp' attribute to the Waveform class
  3. Implementation of the readout of the DAQ-window timestamp in the ROOT reader
  4. Implementation of a dummy 'readout' of the DAQ-window timestamp in the HDF5 reader (set to null)
  5. Implementation of the truncation-to-minimum functionality in the HDF5 reader

Points 4 and 5 affect the HDF5 reader so feedback from Sam would be appreciated.

  • Regarding 4), it is required to implement the readout of the actual DAQ-window timestamp in the body of the WaveformSet_from_hdf5_file() function. I just added a dummy '0' to prevent WaveformSet_from_hdf5_file() from crashing, but the actual DAQ-window timestamp is not loaded to the Waveform attribute.
  • Regarding 5), I introduced two blocks of duplicated code - it was the quick and safe workaround to implement the truncation functionality. Unifying the call to return WaveformSet() would also allow unifying the truncation-code.

jurenag and others added 13 commits October 24, 2024 15:35
Some references to Waveform attributes had not been updated after the CamelCase to snake_case change
A reference to the Waveform class 'adcs' attribute had not been updated after the CamelCase to snake_case change
This change only affects the __build_waveforms_list_from_root_file_using_uproot() helper method of input/input_utils.py
This change only affects the __build_waveforms_list_from_root_file_using_pyroot() helper method of input/input_utils.py
The changes introduced to this docstring inform that now this function also reads a 'daq_timestamp' branch from the input ROOT file. The values read from such branch are loaded into the 'daq_window_timestamp' attribute of the instanced Waveform objects.
For the NP04 particular case, this functionality is needed when reading data coming from the APA 1, for which the length of the waveforms may not match. The cause for this is that WaveformSet requires its Waveform objects to be homogeneous in length.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants