-
Notifications
You must be signed in to change notification settings - Fork 266
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
Fix for TargetIOR1Calibrator #1035
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1035 +/- ##
==========================================
- Coverage 83.52% 83.52% -0.01%
==========================================
Files 188 188
Lines 10655 10656 +1
==========================================
Hits 8900 8900
- Misses 1755 1756 +1
Continue to review full report at Codecov.
|
I am encountering a very frustrating ImportError with the ctapipe_io_targetio plugin, regarding the TargetIOR1Calibrator:
It happens because when importing the CameraR1Calibrator, the I would really appreciate some assistance with this, as I am not finding a convenient solution. |
I will open a new PR with a suggestion |
I think this is a problem of strange hierarchy. The problem here is, why is The other thing is, what we also already discussed somewhere: Wouldn't it make more sense, if the containers were defined, where they are used? |
This was just because trace integration is not calibration, so it was a semantic reason to keep it in image (image is for all processing of image cubes) |
But this creates the image cubes from the waveforms, right? So it's the step before any images exist. |
the "waveforms" is what I mean by image cubes (it's just a 3D image, rather than 2D). Trace integration is closely coupled with image cleaning, especially if we implement the more-useful techniques that do both at the same time (which is in the plans) |
Maybe split in two packages? |
Any references on that? Dominik and me already asked for references on neighbor peak integration, but never got any. For all I know, MAGIC and FACT have a clear separtation between extracting number of photons and arrival times from the waveforms and the pixel selection for reconstruction. So it would be nice to be able to read about more advanced methods and not getting "It's a common method, it just works". |
I have to think about it - that would work now, but I'm anticipating the implementation of e.g. 3D cleaning, and 2-step trace integration, so I just have to draw the relationship diagram to make sure there are no loops... |
Yes, there's a reference for the 2-step waveform + image cleaning, but I have to look it up... it was written for an early NectarCam study I think, but it's the technique used in EventDisplay |
basically it's an iterative approach to integrate -> clean -> re-integrate, ... |
In any case, we need to write down the calibration and integration steps in a clear way somewhere as well, to be clear in what order we should compute and apply calibrations, gain-channel selections, trace integration + denoising |
I'll create an issue, so we don't discuss it on a merged PR :) |
Holder et al (2006), Astroparticle Physics 25, 391–401 |
Fix for returning TargetIOR1Calibrator from
CameraR1Calibrator.from_eventsource
.This is a temporary small fix. Need to consider a long term approach.