We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 494c00d + 5d2e9c8 commit ee45c3fCopy full SHA for ee45c3f
.circleci/config.yml
@@ -142,13 +142,12 @@ workflows:
142
matrix:
143
parameters:
144
version:
145
- - "3.8"
146
- "3.9"
147
- "3.10"
148
- "3.11"
149
- "3.12"
150
- "3.13"
151
-
+
152
- ruff:
153
154
@@ -181,13 +180,12 @@ workflows:
181
180
182
183
184
185
186
187
188
189
190
191
filters:
192
branches:
193
ignore: /.*/
README.md
@@ -23,7 +23,7 @@ Use pip to install pyrato
23
24
pip install pyrato
25
26
-(Requires Python 3.8 or higher)
+(Requires Python 3.9 or higher)
27
28
If the installation fails, please check out the [help section](https://pyfar-gallery.readthedocs.io/en/latest/help).
29
pyrato/rap.py
@@ -17,7 +17,7 @@ def reverberation_time_linear_regression(
17
Energy decay curve. The time needs to be the arrays last dimension.
18
times : ndarray, double
19
Time vector corresponding to each sample of the EDC.
20
- T : 'T20', 'T30', 'T40', 'T50', 'T60', 'EDT', 'LDT'
+ T : 'T15', 'T20', 'T30', 'T40', 'T50', 'T60', 'EDT', 'LDT'
21
Decay interval to be used for the reverberation time extrapolation. EDT
22
corresponds to the early decay time extrapolated from the interval
``[0, -10]`` dB, LDT corresponds to the late decay time extrapolated
@@ -65,7 +65,7 @@ def reverberation_time_linear_regression(
65
... array([0.99526253])
66
67
"""
68
- intervals = [20, 30, 40, 50, 60]
+ intervals = [15, 20, 30, 40, 50, 60]
69
70
if T == 'EDT':
71
upper = -0.1
tests/test_rt.py
@@ -13,7 +13,7 @@
13
14
15
@pytest.mark.parametrize(
16
- 'tx', ['T20', 'T30', 'T40', 'T50', 'T60', 'LDT', 'EDT'])
+ 'tx', ['T15', 'T20', 'T30', 'T40', 'T50', 'T60', 'LDT', 'EDT'])
def test_rt_from_edc(tx):
times = np.linspace(0, 1.5, 2**9)
m = -60
@@ -25,7 +25,7 @@ def test_rt_from_edc(tx):
def test_rt_from_edc_mulitchannel(tx):
30
31
Ts = np.array([1, 2, 1.5])
@@ -38,7 +38,7 @@ def test_rt_from_edc_mulitchannel(tx):
38
39
40
41
42
def test_rt_from_edc_mulitchannel_amplitude(tx):
43
times = np.linspace(0, 5/2, 2**9)
44
Ts = np.array([[1, 2, 1.5], [3, 4, 5]])
0 commit comments