Closed jlenain closed 1 year ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
cfc5bdb
) 86.12% compared to head (b678680
) 88.51%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@tibaldo , @vmarandon , I do not understand exactly why the CI fails while in src/ctapipe_io_nectarcam/tests/test_nectarcameventsource.py::test_loop_over_events
. Could you please briefly explain it to me ?
Thanks !
This is because the even file contain the even numbers. First event in this file is 2.
I would suggest to change the :
FIRST_EVENT_NUMBER_IN_FILE = 1 by : FIRST_EVENT_NUMBER_IN_FILE = 2
and : assert event.index.event_id == FIRST_EVENT_NUMBER_IN_FILE + i by : assert event.index.event_id == FIRST_EVENT_NUMBER_IN_FILE + i*2
Ah OK, thanks @vmarandon . And if we were to use an input file with odd events instead, would that break again the test?
Edit: ok, yes it would... So we should be careful to match this variable with the kind of input test file, not very clean but maybe let's stick to it at the moment?
Perhaps just put a comment in the test to explain what needs to be done if file change ?
This PR should fix issue #41.