File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ def test_compute_knee_frequency():
1313
1414def test_compute_time_constant ():
1515
16- assert compute_time_constant (100 )
16+ assert compute_time_constant (10 )
1717
1818def test_compute_fwhm ():
1919
Original file line number Diff line number Diff line change @@ -24,21 +24,21 @@ def compute_knee_frequency(knee, exponent):
2424 return knee ** (1. / exponent )
2525
2626
27- def compute_time_constant (knee ):
28- """Compute the characteristic time constant based on the knee value .
27+ def compute_time_constant (knee_freq ):
28+ """Compute the characteristic time constant from the estimated knee frequency .
2929
3030 Parameters
3131 ----------
32- knee : float
33- Knee parameter value .
32+ knee_freq : float
33+ Estimated knee frequency .
3434
3535 Returns
3636 -------
3737 float
38- Calculated time constant value, tau, given the knee parameter .
38+ Calculated time constant value, tau, given the knee frequency .
3939 """
4040
41- return 1. / (2 * np .pi * knee )
41+ return 1. / (2 * np .pi * knee_freq )
4242
4343
4444def compute_fwhm (std ):
You can’t perform that action at this time.
0 commit comments