From 5f41cc9d7bc940b2dccd1be304016aec03008bac Mon Sep 17 00:00:00 2001 From: "Karl N. Kappler" Date: Wed, 15 Nov 2023 12:03:14 -0800 Subject: [PATCH] Update test_change_sample_rate If we are going to use the self_sample_rate property introduced, then the setting of sample rate should be done via self._sample_rate. The sample_rate setter should be checked for coverage, and possbly modified. Will add notes to issue #171 --- tests/timeseries/test_channel_ts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/timeseries/test_channel_ts.py b/tests/timeseries/test_channel_ts.py index 6c2aea20..09733b71 100644 --- a/tests/timeseries/test_channel_ts.py +++ b/tests/timeseries/test_channel_ts.py @@ -2,7 +2,7 @@ """ Created on Fri Jan 22 12:32:55 2021 -:copyright: +:copyright: Jared Peacock (jpeacock@usgs.gov) :license: MIT @@ -364,7 +364,7 @@ def test_change_sample_rate(self): with self.subTest(name="sample_interval"): self.assertEqual(self.ts.sample_interval, 1.0 / 16.0) - self.ts.sample_rate = 8 + self.ts._sample_rate = 8 with self.subTest("8"): self.assertEqual(self.ts.sample_rate, 8.0) with self.subTest("n_samples"):