-
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 StereoTrigger non-deterministically discarding LST-1 in prod6 files
This was one of the weirder bugs I have ever tracked down. The symptom was that in consecutive runs of `ctapipe-process` on the same input file, sometimes LST-1 was missing from the output completely. Tracking it down to the SoftwareTrigger class, which used a mixture of using ``TelescopeDescription`` and its string representation for storing and looking up things. The dict `_ids_by_type` was the culprit, its content depended on the hash of str(TelescopeDescription), which was random, since hash of strings are random for security reasons in python.
- Loading branch information
Showing
3 changed files
with
19 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Fix ``SoftwareTrigger`` not correctly handling different telescope | ||
types that have the same string representation, e.g. the four LSTs | ||
in prod6 files. | ||
|
||
Telescopes that have the same string representation now always are treated | ||
as one group in ``SoftwareTrigger``. |
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