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

State-of-the-art of timeslides development in pycbc_multi_inspiral #4177

Merged
merged 6 commits into from
Jan 3, 2023

Conversation

pannarale
Copy link
Contributor

This update is to be considered WIP, as is pycbc_multi_inspiral after all. The idea is to bring to master work done by other developers who no longer work on this project, so that current developers can complete it before things get too outdated.

pycbc_multi_inspiral is not used to the best of my knowledge, aside from the mentioned ongoing development.

The PR comes with its single pycbc_multi_inspiral test with one sky point and one timeslide.

@pannarale pannarale added the PyGRB PyGRB development label Nov 10, 2022
Copy link
Contributor

@spxiwh spxiwh left a comment

Choose a reason for hiding this comment

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

This is confined to multi_inspiral things only, so I'm happy as long as it passes the various tests. I did leave a few comments in the module code to request some clarity. I didn't look at the front end, but have no issue with the approach you describe of bringing developing onto the main branch, as long as nothing other than multi_inspiral is affected by it.

@@ -80,7 +80,9 @@ def get_coinc_triggers(snrs, idx, t_delay_idx):
coincs: dict
Dictionary of coincident trigger SNRs in each detector
"""
coincs = {ifo: snrs[ifo][idx + t_delay_idx[ifo]] for ifo in snrs}
coincs = {
ifo: snrs[ifo][(idx + t_delay_idx[ifo]) % len(snrs[ifo])]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not quite sure what snrs[ifo] is actually storing at this point .... or is the problem that idx + t_delay_idx[ifo] might wrap around the start (or the end)? We do want to keep track of this, so that any quoted delay times in the output file correspond to physical shift (so if we are at t=1, and shift by -100, we give the time-slide as len - 100, not as -100.)

if window_size == 0:
indices = numpy.arange(len(tvec))
else:
if not window_size == 0:
Copy link
Contributor

Choose a reason for hiding this comment

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

This function could definitely do with some comments ... We don't want to rewrite the code and end up with something as opaque as coh_PTF is :-)

@spxiwh
Copy link
Contributor

spxiwh commented Dec 8, 2022

@pannarale Any update on this one?

Adding some comments to timeslides. Additional info should be added.
Removed whitespace and made small edits to comments.
Removed a whitespace
Fixing whitespace issues and a line that was too long
@pannarale
Copy link
Contributor Author

@spxiwh, @ETVincent made a few changes? Are you happy to squash and merge?

@spxiwh spxiwh merged commit 64ecd78 into gwastro:master Jan 3, 2023
bhooshan-gadre pushed a commit to bhooshan-gadre/pycbc that referenced this pull request Jan 25, 2023
…wastro#4177)

* Uploading state-of-the-art timeslides work for further development

* non verbose option for wget

* Comment additions

Adding some comments to timeslides. Additional info should be added.

* Update to comments

Removed whitespace and made small edits to comments.

* More comment updates

Removed a whitespace

* Updates to comments

Fixing whitespace issues and a line that was too long

Co-authored-by: ETVincent <98178306+ETVincent@users.noreply.github.com>
@pannarale pannarale self-assigned this Mar 13, 2023
acorreia61201 pushed a commit to acorreia61201/pycbc that referenced this pull request Apr 4, 2024
…wastro#4177)

* Uploading state-of-the-art timeslides work for further development

* non verbose option for wget

* Comment additions

Adding some comments to timeslides. Additional info should be added.

* Update to comments

Removed whitespace and made small edits to comments.

* More comment updates

Removed a whitespace

* Updates to comments

Fixing whitespace issues and a line that was too long

Co-authored-by: ETVincent <98178306+ETVincent@users.noreply.github.com>
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.

3 participants