-
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
adding new io container for DL1 mono reconstruction and example notebook on how to use it #30
Conversation
…ook on how to use it
ok, thanks @vuillaut, this will affect the way data are read in for lstpipe but I see that you already plan to include this in the PR. If @misabelber es ok with the changes for the reading, you can go ahead with the changes to the rest of the scripts and I'll merge them afterwards |
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.
Thank you very much!! Those are changes that were very necessary but I totally failed to implement. Specially the usage of ctapipe coordinate systems! About ctapipe data containers, I wonder if they will be as easy to use with scikit-learn as pandas dataframes were?
ok, so could you please write some test modules so we can be checking that the code is not being broken? |
@misabelber The containers dump pandas dataframe in hdf5 (see last notebook cell) so it won't change the rest of the analysis. |
@vuillaut Ahh no problem then! |
It shows: - what is disp and that his value is well calculated - that the source position and disp computed with custom code and code with ctapipe coordinates system are equal - that the custom code is 10x faster
@rlopezcoto a question relative to the coordinates system and change from sky to camera frame. In the last notebook I pushed, you can see that the results with custom code (from Mab) and the coordinates change with ctapipe coordinates system (based on astropy) give the same results. However, the change of frame with astropy coordinates is quite slow. In this case the custome code appears to be about 10 times faster. What approach do you think we should keep by default (in any case I'd be in favor of keeping both codes in the repo for now and explain this in the docstring) ? |
The last PR removed unused files but disp.py was still imported in __init__.py Use utils instead now.
- new custom function to make the calibration - new function to make dl1 reduction step - new function to make r0_to_dl1 - new function to get event type number from a particle name - notebook to compare previous chain and new one --> get the same results
Hi.
I flag the previous |
Ok, thanks Thomas, could you please @misabelber have a look to the final code and see if you agree with all the changes before merging it? |
I just reviewed all the changes and they seem perfect to me. Thank you @vuillaut for taking all this tasks. Also the installation package looks very good and useful. |
Changes:
utils.get_event_pos_in_camera
function to get the position of the source in camera using ctapipe coordinates proceduresutils.disp
function to compute disp (in meters) usingget_event_pos_in_camera
and straight out of ctapipe containersThis PR is to show how I propose to solve issues #10 and #11.
The advantages of using a custom ctapipe container are:
If that looks ok with you, let me know but don't merge it right away, I'll use the same PR to make the actual changes in the scripts.