-
Notifications
You must be signed in to change notification settings - Fork 272
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
Lst reader #776
Lst reader #776
Conversation
…STCameraContainer (Fields: LSTEventContainer and LSTServiceContainer)
…le with version 1.0.2 of the protozfit library
…run but spread in multiple fits files
@FrancaCassol I believe one would like to install the most recent version of
So |
Codecov Report
@@ Coverage Diff @@
## master #776 +/- ##
==========================================
+ Coverage 71.54% 71.54% +<.01%
==========================================
Files 199 199
Lines 10824 10878 +54
==========================================
+ Hits 7744 7783 +39
- Misses 3080 3095 +15
Continue to review full report at Codecov.
|
Codacy is complaining about this: The thing is, line continuation with a backslash Most style guides I have seen, suggest to use implicit line continuation in brackets # verify that the configuration_id of all files are the same
# in the CameraConfig table
for path in paths:
assert (
self._camera_config[path].configuration_id ==
self._camera_config[paths[0]].configuration_id
) |
This is what pep8 writes about it
|
Thanks Dominik! I was indeed stuck on this point ;-) |
No problem. I hope Codacy will be happy now ... :-) |
Hi Karl, Franca |
Added to LstEventSource class the possibility to read events from several files in parallel, this is necessary because the LST Event builder writes the events of a single run 4 four different fits files. The reader can now read them and loop on the events with the right order.
Since EventSource foresees only one input_url, in the case of multiple input files the name of the files must finish with suffix *000.fits.fz, *001.fits.fz, etc... and the user must give as input_url the name of the first file (*000.fits.fz). The program will search for the other files.
In the case of only one input file the input_url can have any form.