Skip to content
Snippets Groups Projects
Commit 9af21d0b authored by ChiWai Chan's avatar ChiWai Chan Committed by Patrick Godwin
Browse files

templates.py: fix inconsistent definition of farr.

parent 37f4c4ed
No related branches found
No related tags found
1 merge request!78Fix inconsistent definition of farr in templates.py
Pipeline #272948 failed
......@@ -398,5 +398,5 @@ def moment(farr, h, n, psd):
def bandwidth(m1, m2, s1, s2, f_min, f_max, delta_f, psd):
h = hplus_of_f(m1, m2, s1, s2, f_min, f_max, delta_f)
farr = numpy.linspace(0, f_max, f_max / delta_f + delta_f)
farr = numpy.linspace(0, f_max, int(f_max / delta_f))
return (moment(farr, h, 2, psd) - moment(farr, h, 1, psd)**2)**.5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment