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

Improve pycbc_plot_vt_ratio #3529

Merged
merged 3 commits into from
Nov 20, 2020

Conversation

titodalcanton
Copy link
Contributor

  • Expand --help description to make it clear where the necessary files come from.
  • Open the input files read-only.
  • Replace assertion with a more appropriate argparse error.
  • Add metadata to the output file as done in other plotting scripts.
  • Add support for writing metadata to PDF images.
  • Code cleanup.

Copy link
Contributor

@GarethCabournDavies GarethCabournDavies left a comment

Choose a reason for hiding this comment

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

A few comments - I guess this is a work in progress as the help messages haven't changed?

bin/plotting/pycbc_plot_vt_ratio Outdated Show resolved Hide resolved
bin/plotting/pycbc_plot_vt_ratio Outdated Show resolved Hide resolved
pycbc/results/metadata.py Show resolved Hide resolved
@titodalcanton
Copy link
Contributor Author

A few comments - I guess this is a work in progress as the help messages haven't changed?

I actually changed the description to avoid repeating the same thing twice.

@titodalcanton
Copy link
Contributor Author

Woops, I just noticed that we have

bin/plotting/pycbc_plot_vt_ratio
bin/workflow_comparisons/offline_search/pycbc_plot_vt_ratio_vs_ifar

should I have modified the latter instead?

@josh-willis
Copy link
Contributor

Woops, I just noticed that we have

bin/plotting/pycbc_plot_vt_ratio
bin/workflow_comparisons/offline_search/pycbc_plot_vt_ratio_vs_ifar

should I have modified the latter instead?

The latter is one that I wrote, and which was used in the review of the GPU implementation. It plots the VT ratio as a function of IFAR rather than at certain specified values; this was specifically requested by the reviewers.

I only wrote it to be compatible with the two-IFO workflow; because the file formats are different for multi-IFO, it would have to be modified to work with it (though I am happy for someone to do that).

@titodalcanton
Copy link
Contributor Author

Woops, I just noticed that we have

bin/plotting/pycbc_plot_vt_ratio
bin/workflow_comparisons/offline_search/pycbc_plot_vt_ratio_vs_ifar

should I have modified the latter instead?

The latter is one that I wrote, and which was used in the review of the GPU implementation. It plots the VT ratio as a function of IFAR rather than at certain specified values; this was specifically requested by the reviewers.

I only wrote it to be compatible with the two-IFO workflow; because the file formats are different for multi-IFO, it would have to be modified to work with it (though I am happy for someone to do that).

Thanks. I see the two scripts share some code. I will merge this PR now, but it would be good to merge the two scripts at some point.

@titodalcanton titodalcanton merged commit 8e54b49 into gwastro:master Nov 20, 2020
@titodalcanton titodalcanton deleted the vt_ratio_tweaks branch November 20, 2020 16:49
OliverEdy pushed a commit to OliverEdy/pycbc that referenced this pull request Apr 3, 2023
* Improvements to pycbc_plot_vt_ratio

* Fix

* Gareth's comments
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.

3 participants