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

DQM failing for single-gain runs #64

Closed
jlenain opened this issue Jun 14, 2023 · 1 comment · Fixed by #101
Closed

DQM failing for single-gain runs #64

jlenain opened this issue Jun 14, 2023 · 1 comment · Fixed by #101
Assignees
Labels
bug Something isn't working

Comments

@jlenain
Copy link
Collaborator

jlenain commented Jun 14, 2023

The DQM is currently failing for runs which contain only one gain (high or low). Here is an example for run 3829:

NectarCAM_Run3829
SqlFileName /home/jlenain/data/nectarcam_monitoring_db_2022-11-28.sqlite
Error Code:  no such table: monitoring_drawer_temperatures
DRAWER TEMPERATURE COULD NOT BE RETRIEVED!
Traceback (most recent call last):
  File "start_calib.py", line 184, in <module>
    for i, evt in enumerate(reader):
  File "/opt/conda/envs/nectarchain/lib/python3.8/site-packages/ctapipe/io/eventsource.py", line 278, in __iter__
    for event in self._generator():
  File "/opt/conda/envs/nectarchain/lib/python3.8/site-packages/ctapipe_io_nectarcam/__init__.py", line 304, in _generator
    self.fill_r0r1_container(array_event, event)
  File "/opt/conda/envs/nectarchain/lib/python3.8/site-packages/ctapipe_io_nectarcam/__init__.py", line 621, in fill_r0r1_container
    r0, r1 = self.fill_r0r1_camera_container(zfits_event)
  File "/opt/conda/envs/nectarchain/lib/python3.8/site-packages/ctapipe_io_nectarcam/__init__.py", line 607, in fill_r0r1_camera_container
    reshaped_waveform = zfits_event.waveform.reshape(N_GAINS, n_pixels, n_samples)
ValueError: cannot reshape array of size 110040 into shape (2,1834,60)

This can be solved using @tibaldo 's suggestion as in cta-observatory/ctapipe_io_nectarcam#34 (comment).

@jlenain jlenain added the bug Something isn't working label Jun 14, 2023
@jlenain jlenain linked a pull request Feb 1, 2024 that will close this issue
@jlenain
Copy link
Collaborator Author

jlenain commented Feb 1, 2024

#101 introduces an option in the DQM to enable/disable R0->R1 calibration, and should solve this issue.

@jlenain jlenain self-assigned this Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant