Skip to content

Commit

Permalink
Test now uses units
Browse files Browse the repository at this point in the history
  • Loading branch information
kkappler committed Dec 7, 2023
1 parent ac16486 commit 655948c
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/timeseries/test_remove_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,13 @@
class TestRemoveResponse(unittest.TestCase):
"""
Test remove response, make a fake signal add some trends,
ToDo:
- Add more than one filter to the test.
- Utilize the is_channel_response attributes
"""

@classmethod
def setUpClass(self):
# pole zero filter
pz1 = PoleZeroFilter(
units_in="volts", units_out="nanotesla", name="instrument_response"
units_in="nanotesla", units_out="volts", name="instrument_response"
)
pz1.poles = [
(-6.283185 + 10.882477j),
Expand All @@ -45,7 +42,8 @@ def setUpClass(self):
self.channel.channel_metadata.filter.applied = [True,]
self.channel.channel_metadata.filter.name = ["instrument_response",]# "instrument_response2"]
self.channel.channel_metadata.component = "hx"
self.channel.channel_metadata.units = "digital counts"
self.channel.channel_metadata.units = "volt"
#self.channel.channel_metadata.units = "digital counts"
self.channel.channel_response_filter.filters_list = [pz1,]
self.channel.sample_rate = 1
n_samples = 4096
Expand Down

0 comments on commit 655948c

Please sign in to comment.