From 92ab3e9169f8d236c42315d502d9e34993831c2f Mon Sep 17 00:00:00 2001 From: Michael Kelleher Date: Wed, 8 Mar 2023 10:07:19 -0600 Subject: [PATCH] Remove method specification for perf reasons --- evv4esm/extensions/kso.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evv4esm/extensions/kso.py b/evv4esm/extensions/kso.py index 422dfe7..403e714 100644 --- a/evv4esm/extensions/kso.py +++ b/evv4esm/extensions/kso.py @@ -377,7 +377,7 @@ def main(args): # (e.g. [nCells, nLevels, nEns]) this is why load_mpas_climatology_ensemble # returns data in this way ks_test = np.vectorize( - stats.mstats.ks_2samp, signature="(n),(n)->(),()", excluded=["method"] + stats.mstats.ks_2samp, signature="(n),(n)->(),()" ) images = {"accept": [], "reject": [], "-": []} @@ -392,9 +392,9 @@ def main(args): if isinstance(annuals_1, np.ma.MaskedArray) and isinstance( annuals_2, np.ma.MaskedArray ): - _, p_val = ks_test(annuals_1.filled(), annuals_2.filled(), method="asymp") + _, p_val = ks_test(annuals_1.filled(), annuals_2.filled()) else: - _, p_val = ks_test(annuals_1, annuals_2, method="asymp") + _, p_val = ks_test(annuals_1, annuals_2) null_reject_pre_correct = np.sum(np.where(p_val <= args.alpha, 1, 0)) _, p_val = smm.fdrcorrection(