-
Notifications
You must be signed in to change notification settings - Fork 77
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
Script for gain selection (R0 to R0G), for data taken in ADHF format … #1198
Conversation
…(i.e. from July 2023)
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #1198 +/- ##
==========================================
+ Coverage 72.67% 72.87% +0.19%
==========================================
Files 132 133 +1
Lines 13655 13797 +142
==========================================
+ Hits 9924 10054 +130
- Misses 3731 3743 +12 ☔ View full report in Codecov by Sentry. |
Note: the gain - reduced files seem to be readable and apparently the data inside is correct. But I get the following warning upon reading them with ctapipe_io_lst: Note: I saw this with the EvB5 file I tested, but not with the EvB6 file (not sure the reason is the different version, though) |
Will this gain selector also work with EVB6 data? |
|
No, it does not work... |
Fixed now, there are indeed a few differences I was unaware of between EvB5 and EvB6 ADHF data. |
What is "ADHF" and where does this acronym come from? |
I am afraid I made it up, sorry. The original wording (in the ELOGs) is "ADH-ZFW", butI am not sure either whether that is official or not. |
Ah ok. There are three major combinations of software versions I think. They can be distinguished by looking at the
I notice the PBFHEAD is inconsistent... will report to dirk and julien |
The best solution is to treat data with |
I don't understand - what I do now is to check empirically whether I find "CameraConfig" or "CameraConfiguration" in the file - the latter seems to be the case for EvB6 data. Isn't that enough to distinguish the two cases we find since mid-2023? |
What identifies the new data format most clearly is the content of That the extname of the The presence of the |
I thought there is, as the C++ code also doesn't work with case 2: EVBv5 plus ADH-ZFW. Isn't that the case? |
However, as said above, that would be relatively easy to fix, so maybe the easiest is to fix the C++ code for the |
Sorry, you are right. |
This script already works with both, using the "CameraConfig" vs. "CameraConfiguration" approach to identify what type of input data is being read in. |
About this warning: Is there any way of getting rid of it? |
Is this happening for data where no event was written maybe? protozfits doesn't properly create / close the files if no event was ever written. |
No, there were events written out. But this only happened with the EvB v5 file I tested (not for EvB6 data, CTAR1 aka R1v1, which are the ones for which we will use this script) |
@maxnoe can we approve and merge this? If we get it in the next release we can start gain-selecting the data as part of the onsite automatic processing (hence reduce the disk-filling rate) |
@moralejo We can remove the EVBv5 parts here, right? We will handle all the EVBv5 data with the old, c++ based tool, correct? It also would be good to test this script (all lines are untested as of now). I can create a small sample with the zfitsrecompressor. Do you have an suitable run number for this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from having a small test sample, I suggest testing it over an entire night.
Well, apparently it works, and I think it does not harm to have it available in python form, even if we are not now using it for those data.
I used Run13631.0042 (20230708), but any run should do. |
|
…in into gain_selector
(i.e. for data taken from July 2023).
Still being tested.