-
Notifications
You must be signed in to change notification settings - Fork 17
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
Rewrite MultiFiles to allow reading all subruns #160
Conversation
maxnoe
commented
Nov 20, 2022
•
edited
Loading
edited
- Missing test files for reading multiple subruns after one-another
- Add tests for reading multiple subruns
Codecov ReportBase: 87.74% // Head: 88.11% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #160 +/- ##
==========================================
+ Coverage 87.74% 88.11% +0.37%
==========================================
Files 16 16
Lines 1314 1397 +83
==========================================
+ Hits 1153 1231 +78
- Misses 161 166 +5
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@FrancaCassol This seems to work nicely:
with: from ctapipe.io import EventSource
from traitlets.config import Config
import logging
logging.basicConfig(level=logging.INFO)
c = Config()
c.LSTEventSource.MultiFiles.all_streams = True
c.LSTEventSource.MultiFiles.all_subruns = True
c.LSTEventSource.apply_drs4_corrections = False
c.LSTEventSource.pointing_information = False
c.EventSource.input_url = "/fefs/aswg/data/real/R0/20221030/LST-1.1.Run10003.0000.fits.fz"
with EventSource(config=c) as source:
print(source.multi_file.all_subruns)
for e in source:
print(f"Event {e.index.event_id:8d}", end='\r')
print() |