-
Notifications
You must be signed in to change notification settings - Fork 356
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
Save overlapping PSDs with inspiral and use precomputed psds for inspiral #4930
base: master
Are you sure you want to change the base?
Save overlapping PSDs with inspiral and use precomputed psds for inspiral #4930
Conversation
0. PSD files can either be merge PSD files or files saved as an output of inspiral jobs. 1. Added such option to psd options. If given, this takes precedence. 2. Added class to read those PSD files. This has inspiration from Tito's Time varying class.
|
||
|
||
class PrecomputedTimeVaryingPSD(object): | ||
def __init__(self, opt, length, delta_f, sample_rate): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bhooshan-gadre I think this is a nice way to do this, but I think it might also be useful to be able to invoke this class by hand. Would it not make sense to have a from_cli class method that uses a option/arg input and then a regular init method that could be invoked by hand ?
err_msg = "No PSDs found intersecting segment!" | ||
raise ValueError(err_msg) | ||
fd_segment.psd = best_psd | ||
if opt.precomputed_psd_file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it make sense to have the precomputed psd be gotten from the pycbc.psd.from_cli method instead? That way it can be invoked more broadly.
@@ -26,7 +26,7 @@ def newsnr(snr, reduced_x2, q=6., n=2.): | |||
reduced chi-squared values. See http://arxiv.org/abs/1208.3491 for | |||
definition. Previous implementation in glue/ligolw/lsctables.py | |||
""" | |||
nsnr = numpy.array(snr, ndmin=1, dtype=numpy.float64) | |||
nsnr = numpy.array(numpy.abs(snr), ndmin=1, dtype=numpy.float64) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this change needed in the PR?
TOP-LEVEL SUMMARY: Save overlapping PSDs with inspiral and use precomputed psds for inspiral
Standard information about the request
This is a new feature and efficiency update
This change may affect but not necessarily if the option is not given: the offline search, PyGRB
This change changes: scientific output
Motivation
Contents
PSD saving code should also be used in the calculate_psd executable. However, I need to understand how to handle MPI parts correctly.
Testing performed