Skip to content

Commit

Permalink
Ryan transient testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ruxandra-valcu committed Dec 13, 2023
1 parent 0a70398 commit 7f0decc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions echopype/clean/transient_noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@

RYAN_DEFAULT_PARAMS = {
"m": 5,
"n": 5,
"n": 20,
"thr": 20,
"excludeabove": 250,
"operation": "mean",
"operation": "median",
"dask_chunking": {"ping_time": 100, "range_sample": 100},
}
FIELDING_DEFAULT_PARAMS = {
Expand Down
3 changes: 2 additions & 1 deletion echopype/tests/clean/test_clean_transient_noise.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
import numpy as np
import echopype.clean
from echopype.clean.transient_noise import RYAN_DEFAULT_PARAMS, FIELDING_DEFAULT_PARAMS
import datetime

# Note: We've removed all the setup and utility functions since they are now in conftest.py


@pytest.mark.parametrize(
"method, parameters ,expected_true_false_counts",
[
("ryan", RYAN_DEFAULT_PARAMS, (2115052, 51879)),
("ryan", RYAN_DEFAULT_PARAMS, (1984803, 182128)),
("fielding", FIELDING_DEFAULT_PARAMS, (2117333, 49598)),
],
)
Expand Down

0 comments on commit 7f0decc

Please sign in to comment.