Skip to content

Commit a7dbd20

Browse files
mmAnimCurveStatistics - tests - rename signal-to-noise
1 parent 9142bcd commit a7dbd20

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

tests/test/test_tools/test_animcurve_statistics.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
STAT_NAME_MEDIAN = "median"
4444
STAT_NAME_VARIANCE = "variance"
4545
STAT_NAME_STD_DEV = "stddev"
46-
STAT_NAME_SNR = "snr"
46+
STAT_NAME_SIGNAL_TO_NOISE_RATIO = "signal_to_noise_ratio"
4747
STAT_NAME_LIST = [
4848
STAT_NAME_MEAN,
4949
STAT_NAME_MEDIAN,
5050
STAT_NAME_VARIANCE,
5151
STAT_NAME_STD_DEV,
52-
STAT_NAME_SNR,
52+
STAT_NAME_SIGNAL_TO_NOISE_RATIO,
5353
]
5454

5555

@@ -78,7 +78,7 @@ def _parse_statistics_result(self, result):
7878
elif stat_type == STAT_TYPE_STDDEV:
7979
stats[STAT_NAME_STD_DEV] = stat_value
8080
elif stat_type == STAT_TYPE_SNR:
81-
stats[STAT_NAME_SNR] = stat_value
81+
stats[STAT_NAME_SIGNAL_TO_NOISE_RATIO] = stat_value
8282

8383
i += 2
8484

@@ -269,7 +269,8 @@ def test_statistics_constant_curve(self):
269269
# For a constant curve SNR should be infinity (but might be
270270
# represented as a large value).
271271
self.assertTrue(
272-
stats[STAT_NAME_SNR] > 1000.0 or math.isinf(stats[STAT_NAME_SNR])
272+
stats[STAT_NAME_SIGNAL_TO_NOISE_RATIO] > 1000.0
273+
or math.isinf(stats[STAT_NAME_SIGNAL_TO_NOISE_RATIO])
273274
)
274275

275276
def test_statistics_linear_curve(self):

0 commit comments

Comments
 (0)