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

Missing pedestal tables in some last subruns #1197

Open
morcuended opened this issue Dec 17, 2023 · 0 comments
Open

Missing pedestal tables in some last subruns #1197

morcuended opened this issue Dec 17, 2023 · 0 comments

Comments

@morcuended
Copy link
Member

Now and then it happens that last subruns of some runs haven't got the pedestal table, hence dl1ab script fails. When this occurs, OSA discards these files, corresponding to a few seconds of data. Should we try to treat them differently or is it okay that they are discarded?

Traceback (most recent call last):
  File "/fefs/aswg/software/conda/envs/osa-v0.10/bin/lstchain_dl1ab", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/fefs/aswg/software/conda/envs/osa-v0.10/lib/python3.11/site-packages/lstchain/scripts/lstchain_dl1ab.py", line 185, in main
    pedestal_thresh = get_threshold_from_dl1_file(args.input_file, sigma)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/fefs/aswg/software/conda/envs/osa-v0.10/lib/python3.11/site-packages/lstchain/calib/camera/pixel_threshold_estimation.py", line 58, in get_threshold_from_dl1_file
    ped_mean_pe, ped_std_pe = get_bias_and_std(dl1_path)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/fefs/aswg/software/conda/envs/osa-v0.10/lib/python3.11/site-packages/lstchain/calib/camera/pixel_threshold_estimation.py", line 25, in get_bias_and_std
    ped = f.root[dl1_params_tel_mon_ped_key]
          ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/fefs/aswg/software/conda/envs/osa-v0.10/lib/python3.11/site-packages/tables/group.py", line 422, in __getitem__
    raise IndexError(childname)
IndexError: /dl1/event/telescope/monitoring/pedestal
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

No branches or pull requests

1 participant