Skip to content

Commit

Permalink
Update test_change_sample_rate
Browse files Browse the repository at this point in the history
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
  • Loading branch information
kkappler committed Nov 15, 2023
1 parent a130cc1 commit 5f41cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/timeseries/test_channel_ts.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"""
Created on Fri Jan 22 12:32:55 2021
:copyright:
:copyright:
Jared Peacock ([email protected])
:license: MIT
Expand Down Expand Up @@ -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"):
Expand Down

0 comments on commit 5f41cc9

Please sign in to comment.