Skip to content

Need to be more careful in truncate_waveform_by_flow #154

@vijayvarma392

Description

@vijayvarma392

image

Does this code first compute pericenters when getting gwecc_object and then recompute them again? That's very bad!
Similarly, why repeat the code about retaining good extrema, and building the interpolant?
If that's not what is happening: It's still bad to repeat this whole section of code. How about making a function in the main code and just calling that in both places. This is important because, let's say you decide to change the 1,5 factor in one place and forget to change it in the other one..

Finally, independent: What does this code do if you give it a waveform that is too short for flow=20Hz, but ask it to truncate it at flow=20Hz? It should raise a helpful error message.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions