-
Notifications
You must be signed in to change notification settings - Fork 78
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 to recompute DL1b parameters from a DL1 file #222
Conversation
Maybe you should rename the script to |
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.
I have tested it with a dl1 file and it's working fine. I get new files with and without images. When I save the image table it takes quite long with respect to the no-image option though. However, the image is not recalculated, right? Shouldn't it be just the same? So I expected the run time to be more or less the same.
It should be more or less the same yes, the only difference is the copy. So depending on the size of the data, your specs, etc... time may vary but I don't expect such a huge difference. |
I ran the script in parallel using
I would like to cross-check the runtimes but the IT container is down right now |
Weird, I don't have such difference on my laptop:
Without images:
|
I'm probably doing something wrong then. Will check it again on my local machine |
My bad. I checked it again and the time values make sense now. These are for a whole subrun (53000 events): Keeping images
Without images
The content of both files is OK as well. Let's merge it. |
thanks @morcuended for the quick review and @vuillaut for the code! |
Thanks for the tests @morcuended ! |
This is not the best approach since it recodes the computation of the parameters.
A better approach would be to code an
EventSource
for DL1 (but this will come with ctapipe DL1 Tools) and use the same pipeline once we have calibrated images, no matter their origin.