-
Notifications
You must be signed in to change notification settings - Fork 18
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
Upgrade nectarchain to ctapipe 0.19 #68
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #68 +/- ##
=========================================
- Coverage 0.38% 0.38% -0.01%
=========================================
Files 30 30
Lines 3350 3404 +54
=========================================
Hits 13 13
- Misses 3337 3391 +54
☔ View full report in Codecov by Sentry. |
… the conda-forge package to be built.
…tead of a pip dependency (was a temporary hack, until the last release of ctapipe_io_nectarcam was published as a conda-forge package).
…events in waveformsContainer(s) - Update to ctapipe0.19
(Next commit should ake care of flagged bad pixels and how to deal with them)
(Fixing bad pixel handling hsould come next)
I detected some issues with the |
Hi @guillaumegrolleron , no problem. What kind of issues did you spot? Indeed, we are moving from |
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
Hi @hashkar , Traceback (most recent call last):
File "/opt/cta/nectarchain/src/nectarchain/dqm/start_calib.py", line 181, in <module>
Chan, Samp = p.DefineForRun(reader1)
^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/cta/nectarchain/src/nectarchain/dqm/dqm_summary_processor.py", line 41, in DefineForRun
self.Samp = len(evt1.r0.tel[0].waveform[0][0])
~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: 'NoneType' object is not subscriptable right when grabbing the run configuration through |
The fact that these runs were taken with gain selection might be a factor. |
Indeed, the r0 container is not filled for gain-selected runs, that's why r0 is a 'NoneType' object. To read gain-selected files you should disable the r0->r1 corrections and then read the raw data in the r1 container. |
OK, thanks @sizun , @tibaldo ! |
Finally I solved this problem very easily. I have computed again the charge and it appears that the parameters estimators for the fit initialization didn't work. I fixed this problem and the SPE fit works well now. |
Hi @guillaumegrolleron , |
Hi @jlenain, |
…il in testing the code for different python versions.
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.
There are several entirely new files and many modifications for which to me it's hard to see the relationship with the upgrade to ctapipe 0.19. It's hard to review the code for me since I miss the context. If other changes/enhancements were added along with the modifications for the upgrade of ctapipe it would be useful to provide the relevant information in the PR for future documentation.
src/nectarchain/user_scripts/vmarandon/ShowPedestalEvolution.py
Outdated
Show resolved
Hide resolved
Hum, it seems the last commits by @guillaumegrolleron merged modifications coming from other PR (such as e.g. #70 ). @guillaumegrolleron , would it be possible to undo/clean the commit history of your last contribution, please ? |
-update SPE fit parameters initialization following updates of the ctapipe extractors -improve the limits of generated charge histogram plots
dcae747
to
5c05525
Compare
Hi all, |
Hi @guillaumegrolleron , thanks a lot for that! This is all fine now. |
src/nectarchain/calibration/NectarGain/SPEfit/NectarGainSPE_singlerun.py
Outdated
Show resolved
Hide resolved
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.
There are still a few changes in the DQM part for which I'm not sure I understand the relationship with the upgrade to ctapipe 0.19
Thanks a lot for the review, @tibaldo ! |
This PR, work in progress, is meant to upgrade
nectarchain
toctapipe
v0.19, for all code components.