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

Final version of pycbc_pygrb_plot_snr_timeseries #4955

Merged
merged 2 commits into from
Nov 25, 2024

Conversation

pannarale
Copy link
Contributor

This PR is the sixth in the series started in PR #4929. Much like PRs #4947 and #4950, this PR provides a version of pycbc_pygrb_plot_snr_timeseries that uses veto and segments files, as well as the utilities introduced recently to streamline the PyGRB results scripts. Additionally, pycbc_pygrb_plot_snr_timeseries now has an option to activate plotting the onsource (by default the onsource is not shown) and this is handled in its dedicated workflow generator function.

Standard information about the request (and the following ones that will be linked to this)

This is a: a new feature enabling veto definer file usage in PyGRB. Utilities and scripts in results production are being streamlined along the way.

This change affects: PyGRB

This change changes: result presentation / plotting and scientific output.

Should this change break the standard automated test running --help for PyGRB plotting scripts, I will add some workarounds to avoid this. If needed, these will likely be empty functions: the plotting scripts will be progressively renovated in the whole series of PRs.

Motivation

Now that the workflow generator passes the veto definer file to the jobs where needed, its usage in the PyGRB results scripts is possible.

Testing performed

The totality of the changes that will be broken down in multiple PRs was tested on GRB 170817A data by producing a full results webpage (see here).

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

@pannarale pannarale added the PyGRB PyGRB development label Nov 23, 2024
@pannarale pannarale self-assigned this Nov 23, 2024
ifos,
slide_dict,
opts.veto_file,
hide_onsource=hide_onsource
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are only using hide_onsource once, so consider doing instead

    hide_onsource=(not opts.onsource)

Copy link
Contributor

@titodalcanton titodalcanton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment only.

@pannarale pannarale enabled auto-merge (squash) November 25, 2024 21:14
@pannarale pannarale merged commit c3a70a2 into gwastro:master Nov 25, 2024
29 checks passed
@pannarale pannarale deleted the pygrb_vetoes branch November 25, 2024 21:58
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