Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions tests/test_rt.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def test_rt_from_edc(tx):
m = -60
edc = times * m
edc_exp = pf.TimeData(10**(edc/10), times)
RT_est = ra.reverberation_time_linear_regression(
RT_est = ra.parameters.reverberation_time_linear_regression(
edc_exp, T=tx)
npt.assert_allclose(RT_est, 1.)

Expand All @@ -30,7 +30,7 @@ def test_rt_from_edc_mulitchannel(tx):
m = -60
edc = np.atleast_2d(m/Ts).T @ np.atleast_2d(times)
edc_exp = pf.TimeData(10**(edc/10), times)
RT_est = ra.reverberation_time_linear_regression(
RT_est = ra.parameters.reverberation_time_linear_regression(
edc_exp, T=tx)
npt.assert_allclose(RT_est, Ts)

Expand All @@ -47,7 +47,7 @@ def test_rt_from_edc_mulitchannel_amplitude(tx):
edc[idx] = As[idx] + m*times/Ts[idx]

edc_exp = pf.TimeData(10**(edc/10), times)
RT_est, A_est = ra.reverberation_time_linear_regression(
RT_est, A_est = ra.parameters.reverberation_time_linear_regression(
edc_exp, T=tx, return_intercept=True)
npt.assert_allclose(RT_est, Ts)
npt.assert_allclose(A_est, 10**(As/10))
Expand All @@ -61,4 +61,4 @@ def test_rt_from_edc_error():
T = 'Bla'

with pytest.raises(ValueError, match='is not a valid interval.'):
ra.reverberation_time_linear_regression(edc_exp, T=T)
ra.parameters.reverberation_time_linear_regression(edc_exp, T=T)