Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
timonmerk committed Dec 12, 2023
1 parent 80d7327 commit 590c42f
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 47 deletions.
9 changes: 2 additions & 7 deletions tests/test_feature_sampling_rates.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def get_example_settings(test_arr: np.array) -> nm_stream_abc.PNStream:


def test_different_sampling_rate_100Hz():

sampling_rate_features = 100

arr_test = np.random.random([2, 1020])
Expand All @@ -40,7 +39,6 @@ def test_different_sampling_rate_100Hz():


def test_different_sampling_rate_10Hz():

sampling_rate_features = 10

arr_test = np.random.random([2, 1200])
Expand All @@ -59,7 +57,6 @@ def test_different_sampling_rate_10Hz():


def test_different_sampling_rate_1Hz():

sampling_rate_features = 1

arr_test = np.random.random([2, 3000])
Expand All @@ -78,7 +75,6 @@ def test_different_sampling_rate_1Hz():


def test_different_sampling_rate_0DOT1Hz():

sampling_rate_features = 0.1

arr_test = np.random.random([2, 30000])
Expand All @@ -97,7 +93,6 @@ def test_different_sampling_rate_0DOT1Hz():


def test_different_segment_lengths():

segment_length_features_ms = 800

arr_test = np.random.random([2, 1200])
Expand All @@ -124,6 +119,6 @@ def test_different_segment_lengths():
# check the difference between time points

assert (
df_seglength_1000.iloc[0]["ch0-avgref_fft_theta"]
!= df_seglength_800.iloc[0]["ch0-avgref_fft_theta"]
df_seglength_1000.iloc[0]["ch0-avgref_fft_theta_mean"]
!= df_seglength_800.iloc[0]["ch0-avgref_fft_theta_mean"]
)
Loading

0 comments on commit 590c42f

Please sign in to comment.