From 9f22c71a5844f90e05c86c615dc53344f056ade5 Mon Sep 17 00:00:00 2001 From: ruxandra valcu Date: Wed, 13 Dec 2023 11:25:49 +0200 Subject: [PATCH] Ryan transient testing --- echopype/clean/transient_noise.py | 4 ++-- echopype/tests/clean/test_clean_transient_noise.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/echopype/clean/transient_noise.py b/echopype/clean/transient_noise.py index a88006226..e2c56d7ca 100644 --- a/echopype/clean/transient_noise.py +++ b/echopype/clean/transient_noise.py @@ -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 = { diff --git a/echopype/tests/clean/test_clean_transient_noise.py b/echopype/tests/clean/test_clean_transient_noise.py index 85b1c038f..11df336c8 100644 --- a/echopype/tests/clean/test_clean_transient_noise.py +++ b/echopype/tests/clean/test_clean_transient_noise.py @@ -10,7 +10,7 @@ @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)), ], )