-
Notifications
You must be signed in to change notification settings - Fork 10
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
Need to be more careful in truncate_waveform_by_flow #154
Comments
@md-arif-shaikh: You said something about the first part above, but I lost it. Can you say it again? What about the second part above? |
With some more hindsight, I'm starting to think maybe we just want this code to be a part of eccDefinition itself. The main reason would be to make it not as hidden as it is now.
Then for the full thing you do:
For truncation, you'd do:
Finally, we'd want a wrapper similar to If you agree, I'd just take a note of this and do this after the paper. |
I am leaving this for later. I will get back to it after the paper is done. |
Ok, among the current issues, I think this is among the high-priority ones, but as time permits. The reason is this would be an interface change, and it's good to not do those after making the code public. |
gw_eccentricity/gw_eccentricity/truncate_waveform_by_flow.py
Line 77 in e1e3a1d
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.
The text was updated successfully, but these errors were encountered: