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

Corrected background and module path in pygrb_plot_injs_results #4977

Merged
merged 2 commits into from
Dec 8, 2024

Conversation

pannarale
Copy link
Contributor

This PR fixes a bug in #4960 with a module path and it corrects the background. PyGRB background is the collection of max reweighted SNRs, where maximisation is done over each trial. The previous version was gathering all reweighted SNRs and not carrying out this maximisation.

It is the ninth PR in the series started in PR #4929.

Standard information about the request

This is a: 2 bug fixes.

This change affects: PyGRB

This change changes: result presentation / plotting, scientific output

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

@pannarale pannarale added bug PyGRB PyGRB development labels Dec 7, 2024
@pannarale pannarale self-assigned this Dec 7, 2024
for slide_id in slide_dict:
for j, trial in enumerate(trial_dict[slide_id]):
# True whenever the trigger is in the trial
trial_cut = (trial[0] <= trig_data[keys[0]][slide_id][:])\
Copy link
Contributor

Choose a reason for hiding this comment

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

For readability, I suggest defining a temporary variable to hold the value of trig_data[keys[0]][slide_id][:] as the first thing into the outer loop, before entering the loop over trial_dict[slide_id].

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.

Just a minor suggestion but otherwise this looks good to me.

@pannarale pannarale merged commit 1b45e02 into gwastro:master Dec 8, 2024
29 checks passed
@pannarale pannarale deleted the pygrb_injs_plot_bugs branch December 8, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug PyGRB PyGRB development
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants