Skip to content

Commit

Permalink
remove experimental warning for logic_clip_filter test
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-springer committed Apr 17, 2024
1 parent 30760c4 commit f3a7e61
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rdtools/test/filtering_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ def test_logic_clip_filter(generate_power_time_series_no_clipping,
with warnings.catch_warnings(record=True) as record:
logic_clip_filter(power_nc_tz_naive)
# Warning thrown for it being an experimental filter + tz-naive
assert_warnings(['The logic-based filter is an experimental',
'Function expects timestamps in local time'],
assert_warnings(['Function expects timestamps in local time'],
record)
# Scramble the index and run through the filter. This should throw
# an IndexError.
Expand All @@ -211,8 +210,7 @@ def test_logic_clip_filter(generate_power_time_series_no_clipping,
logic_clip_filter(power_datetime_index_irregular)
# Warning thrown for it being an experimental filter + irregular
# sampling frequency.
assert_warnings(['The logic-based filter is an experimental',
'Variable sampling frequency across time series'],
assert_warnings(['Variable sampling frequency across time series'],
record)

# Check that the returned time series index for the logic filter is
Expand Down

0 comments on commit f3a7e61

Please sign in to comment.