Skip to content
Snippets Groups Projects

Fix inconsistent definition of farr in templates.py

Merged ChiWai Chan requested to merge bug-fix-inconsistent-length into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading