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

Handle RA and dec in radians in pygrb #4787

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

pannarale
Copy link
Contributor

@pannarale pannarale commented Jun 13, 2024

This PR simply uses radians for right ascension and declination throughout PyGRB. Displaying them in degrees in the summary table on the results webpage is preserved. This cleanup fixes the single IFO vs coherent IFO diagnostic plots.

Standard information about the request

This is a: bug fix

This change affects: PyGRB

This change changes: result presentation / plotting

Motivation

The injections in plots such as

H1L1-PYGRB_PLOT_COH_IFOSNR_NSBH_GRB170728A_H1-1185258293-5648

with 2 IFOs or

H1L1V1-PYGRB_PLOT_COH_IFOSNR_ZOOMIN_NSBH_GRB170817A_H1-1187006058-5648

with 3 IFOs look wrong, but otherwise the behaviour of injections looks good. The PR ensures that R.A. and declination are handled consistently throughout the workflow, so that the resulting plots are now correspondingly

H1L1-PYGRB_PLOT_COH_IFOSNR_NSBH_GRB170728A_H1-1185258293-5648

and

H1L1V1-PYGRB_PLOT_COH_IFOSNR_ZOOMIN_NSBH_GRB170817A_H1-1187006058-5648-1

Testing performed

The updated plots were produced rerunning the entire workflow from injection production onwards (injection filtering, post-processing).

  • The author of this pull request confirms they will adhere to the code of conduct

@pannarale pannarale added the PyGRB PyGRB development label Jun 13, 2024
@pannarale pannarale self-assigned this Jun 13, 2024
@pannarale pannarale requested a review from titodalcanton June 14, 2024 14:08
@titodalcanton titodalcanton merged commit fa0c248 into gwastro:master Jun 17, 2024
33 checks passed
@pannarale pannarale deleted the consistent_ra_dec branch June 17, 2024 10:29
GarethCabournDavies pushed a commit to GarethCabournDavies/pycbc that referenced this pull request Jun 24, 2024
* Always handle RA and dec in radians (but keep displaying them in degrees in the summary table)

* Better args in grb info table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PyGRB PyGRB development
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants