-
Notifications
You must be signed in to change notification settings - Fork 16
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
Adds TimeDomainCBCWaveformGenerator
#188
Conversation
@deepchatterjeeligo will write some tests where I compare against |
ff05830
to
9ff7480
Compare
@deepchatterjeeligo @wbenoit26 could you take a look at this? I'll post some plots comparing conditioned vs unconditioned waveforms |
Also, tested out Ravis highpass filter and was able to match scipys. So, will directly incorporate that into the Generator once it gets merged in |
c75cb7b
to
991db23
Compare
@wbenoit26 @deepchatterjeeligo this should be ready to go. I did some minor refactoring and added some documentation so might be worth looking over again. One thing to note is that there is an off by one error when trying to align the ml4gw waveforms with the gwsignal waveforms that is parameter dependent. I have a quirky work around in the tests that compares the waveforms unshifted, and shifted by one, and asserts True if either is within tolerance. This obviously should be ironed out down the line, but I don't think this is a huge problem. |
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.
Looks good to me, just a couple minor nitpicks
Coverage reportClick to see where and how coverage changed
This report was generated by python-coverage-comment-action |
Moves the
WaveformGenerator
from amplfi, and adds conditioning of waveform before transforming into the time domain. The conditioning mimics that done in lalsimulation: https://git.ligo.org/lscsoft/lalsuite/-/blob/master/lalsimulation/python/lalsimulation/gwsignal/core/waveform_conditioning.py?ref_type=heads#L248One thing we are still missing that
lalsimulation
does is abutterworth
highpass. I haven't seen a straightforward torch api for this so we may have to implement it ourselves. I've compared our outputs using a scipy butterworth and they are very close to identical.I will also test out how the highpass that occurs during our whitening step compares between the ml4gw waveforms and lalsimulation.