-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix HillasReconstructor in case of too few telescopes (#994)
* only counts telescopes with a width that is not np.NaN now * using np.isnan to check for nan * Exception had the wrong telescope number * Raise Exceptions for invalid widths - Hillas Reconstroctur now fails in any of these cases: - len(hillas_dict) < 2 - any width is np.nan - any width is 0 * Adds a test to make sure the HillasReconstructor fails if - there are less than 2 telescopes for the given event - any width is 0 - any width is nan Implementation is mostly copied from the test_reconstruction test. * adapting the test to account for changes in the master branch (r0 container: image->waveform)
- Loading branch information
1 parent
26edb67
commit 1480c0c
Showing
2 changed files
with
86 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters