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

Speed up psd computation for PyCBC Live #4106

Merged
merged 13 commits into from
Sep 1, 2022

Conversation

spxiwh
Copy link
Contributor

@spxiwh spxiwh commented Aug 12, 2022

One more patch to try to help with pycbc_live performance:

This one moves the FFTs in PSD estimation (done during inverse spectrum truncation), to the new cached_fft functions.

I also add an option to allow the PSD not to be recomputed every data block. For the early warning analysis, with 1 second blocks, this is especially relevant. I have set this such that if the data is "bad" the PSD must be recomputed as soon as it is "good" again. (It's still not entirely clear to me what data is used for PSD estimation, and if we should continue computing PSDs until we have X data blocks in the buffer, and then only recompute every Y data blocks).

@spxiwh spxiwh requested a review from titodalcanton August 12, 2022 10:12
@spxiwh
Copy link
Contributor Author

spxiwh commented Aug 30, 2022

Any comments on this one? This PR only makes changes that affects pycbc_live, and is basically just an addition to what was done in #4096

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.

This looks ok to me apart from the suggestion above.

@titodalcanton titodalcanton merged commit 41beb31 into gwastro:master Sep 1, 2022
connor-mcisaac pushed a commit to connor-mcisaac/pycbc that referenced this pull request Oct 12, 2022
* Implement "don't always recompute PSD" option

* Add caching functions in estimate as well

* Fix typo in pycbc_live

* Add more caching to pycbc_live front end

* Add in the new option

* FFT - Fix for cached fft/ifft

* Codeclimating

* Add positive_int type as requested

* Line spacing

* Enforce positive_int

* Need to actually return object

* Update bin/pycbc_live

Co-authored-by: Tito Dal Canton <tito@dalcanton.it>

* Update optparse.py

Co-authored-by: Tito Dal Canton <tito@dalcanton.it>
@spxiwh spxiwh deleted the pr_speed_up_live_psd_comp branch March 17, 2023 11:37
acorreia61201 pushed a commit to acorreia61201/pycbc that referenced this pull request Apr 4, 2024
* Implement "don't always recompute PSD" option

* Add caching functions in estimate as well

* Fix typo in pycbc_live

* Add more caching to pycbc_live front end

* Add in the new option

* FFT - Fix for cached fft/ifft

* Codeclimating

* Add positive_int type as requested

* Line spacing

* Enforce positive_int

* Need to actually return object

* Update bin/pycbc_live

Co-authored-by: Tito Dal Canton <tito@dalcanton.it>

* Update optparse.py

Co-authored-by: Tito Dal Canton <tito@dalcanton.it>
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.

2 participants