-
Notifications
You must be signed in to change notification settings - Fork 357
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
Reimplement PhaseTDStatistic #3596
Reimplement PhaseTDStatistic #3596
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me. As long as you/others are happy that the new code in stat.py reproduces what was done with the old 2-det coinc code then please merge.
Hmm, interesting failure in PyCBC Live, apparently reproducible.
??? |
7a11b8d
to
2fcb6f1
Compare
For reference, the failing test was due to #3603. |
Here is a very simple test using the current example. I compared the rankings of the recovered injections between this code version and 503873c (just before the stat refactor).
The difference in coinc ranks seems a bit high (both injections have coinc rank ~12). Part of this difference may be due to the necessary change in the format of the phase-time-amplitude files, however. |
I have now poked at the old and new phase-time-amplitude files for some time (see plots here) and I convinced myself that the ~100x difference in expected signal rate comes from the phase-time-amplitude files themselves and not from this code change. I might look into this further, but I would like to merge this so we can have a working O3-like configuration of PyCBC Live. |
@titodalcanton have you had any feedback from @ahnitz on the change in PTA files and resulting change in statistic? |
@ahnitz and I discussed this and agreed that the rate is expected to have differences due to the PTA file format change. |
* Reimplement PhaseTDStatistic * Fix error in PyCBC Live due to args.statistic_files being modified by from_cli() * Switch PyCBC Live test to use the PTA statistic again * A couple fixes from Codeclimate * Add reference for coinc stat * Add safety check for coinc_lim_for_thresh()
Reimplement
PhaseTDStatistic
based on the code that was in place before #3535, and modify the PyCBC Live test to use it. Some extra changes are needed to fix some errors related to afrom_cli()
method modifying some of the arguments and breaking further calls to the same function.Closes #3580. Closes #3584.
I have not tested that the resulting values are actually correct or equivalent to the old code, though, so marking as WIP.