Skip to content
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

Fix bug in reading single detector event fit_threshold #4971

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

maxtrevor
Copy link
Contributor

The fit_threshold was being read from the wrong location in an hdf file when computing the significance of single detector events in PyCBC Live.

The location it was reading from used to be correct, but was not updated to reflect changes made to pycbc_live_combine_single_significance_fits executable in d486ec2

@titodalcanton titodalcanton enabled auto-merge (squash) December 5, 2024 14:15
@titodalcanton
Copy link
Contributor

There is a genuine failure in the unit tests (something something attribute not found), please have a look.

@maxtrevor
Copy link
Contributor Author

There is a genuine failure in the unit tests (something something attribute not found), please have a look.

Whatever stat files are being used in the unit test of the pycbc live search must have the fit_threshold stored the old way. That file will need to be updated to make the test pass but I'm not sure where that stat file is stored.

@titodalcanton
Copy link
Contributor

I do not think it is stored anywhere, as far as I remember it is generated on the spot with this script:
https://github.com/gwastro/pycbc/blob/master/examples/live/make_singles_significance_fits.py
So I think it is just a matter of fixing that script.

@titodalcanton titodalcanton merged commit 10e7e09 into gwastro:master Dec 5, 2024
29 checks passed
maxtrevor added a commit to maxtrevor/pycbc that referenced this pull request Dec 5, 2024
@maxtrevor maxtrevor mentioned this pull request Dec 5, 2024
maxtrevor added a commit that referenced this pull request Dec 5, 2024
* Fix a couple of output/upload value issues in pycbc live (#4953)

* get singles back to being reduced chisquared in uploads

* Save ranking statistic information in the "likelihood" part of the coinc table

* Not all CandidateForGraceDB will have stat in the coinc_results

* Fix bug where single detector event fit_threshold was being read from wrong location (#4971)

* Minor increment to version number

---------

Co-authored-by: Gareth S Cabourn Davies <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants