lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python3Packages.scikit-posthocs: init at 0.7.0

authored by

Maksym Balatsko and committed by
Yt
05e47082 c5855106

+126
+25
pkgs/development/python-modules/scikit-posthocs/0001-increased-abs-tolerance-for-wilcoxon-test.patch
··· 1 + From 02266a00ce0eb6a089e7efe07816da1aa5152fc9 Mon Sep 17 00:00:00 2001 2 + From: Maksim Terpilovskii <maximtrp@gmail.com> 3 + Date: Sun, 31 Jul 2022 12:25:14 +0300 4 + Subject: [PATCH] increased abs tolerance for wilcoxon test 5 + 6 + --- 7 + tests/test_posthocs.py | 2 +- 8 + 1 file changed, 1 insertion(+), 1 deletion(-) 9 + 10 + diff --git a/tests/test_posthocs.py b/tests/test_posthocs.py 11 + index 956d808..8cc65e4 100644 12 + --- a/tests/test_posthocs.py 13 + +++ b/tests/test_posthocs.py 14 + @@ -471,7 +471,7 @@ class TestPosthocs(unittest.TestCase): 15 + [2.857818e-06, 1.230888e-05, 1]]) 16 + 17 + results = sp.posthoc_wilcoxon(self.df.sort_index(), val_col = 'pulse', group_col = 'kind') 18 + - self.assertTrue(np.allclose(results, r_results)) 19 + + self.assertTrue(np.allclose(results, r_results, atol=1e-4)) 20 + 21 + 22 + def test_posthoc_scheffe(self): 23 + -- 24 + 2.36.1 25 +
+34
pkgs/development/python-modules/scikit-posthocs/0002-Update-test_posthocs.py.patch
··· 1 + From 5416ffba3ab01aebab3909400b5a9e847022898e Mon Sep 17 00:00:00 2001 2 + From: Maksim Terpilovskii <maximtrp@gmail.com> 3 + Date: Thu, 16 Mar 2023 00:20:02 +0300 4 + Subject: [PATCH] Update test_posthocs.py 5 + 6 + --- 7 + tests/test_posthocs.py | 4 ++-- 8 + 1 file changed, 2 insertions(+), 2 deletions(-) 9 + 10 + diff --git a/tests/test_posthocs.py b/tests/test_posthocs.py 11 + index 8cc65e4..42ca5f3 100644 12 + --- a/tests/test_posthocs.py 13 + +++ b/tests/test_posthocs.py 14 + @@ -71,7 +71,7 @@ class TestPosthocs(unittest.TestCase): 15 + a = splt.sign_plot(x, flat=True, labels=False) 16 + with self.assertRaises(ValueError): 17 + splt.sign_plot(x.astype(float), flat=True, labels=False) 18 + - self.assertTrue(isinstance(a, ma._subplots.Axes)) 19 + + self.assertTrue(isinstance(a, ma._axes.Axes)) 20 + 21 + def test_sign_plot_nonflat(self): 22 + 23 + @@ -85,7 +85,7 @@ class TestPosthocs(unittest.TestCase): 24 + with self.assertRaises(ValueError): 25 + splt.sign_plot(x.astype(np.int64), labels=False) 26 + 27 + - self.assertTrue(isinstance(a, ma._subplots.Axes) and isinstance(cbar, mpl.colorbar.ColorbarBase)) 28 + + self.assertTrue(isinstance(a, ma._axes.Axes) and isinstance(cbar, mpl.colorbar.ColorbarBase)) 29 + 30 + # Outliers tests 31 + def test_outliers_iqr(self): 32 + -- 33 + 2.36.1 34 +
+65
pkgs/development/python-modules/scikit-posthocs/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , setuptools 5 + , wheel 6 + , matplotlib 7 + , numpy 8 + , pandas 9 + , scipy 10 + , seaborn 11 + , statsmodels 12 + , pytestCheckHook 13 + , seaborn-data 14 + }: 15 + 16 + buildPythonPackage rec { 17 + pname = "scikit-posthocs"; 18 + version = "0.7.0"; 19 + format = "pyproject"; 20 + 21 + src = fetchFromGitHub { 22 + owner = "maximtrp"; 23 + repo = "scikit-posthocs"; 24 + rev = "v${version}"; 25 + hash = "sha256-IkvAc684AWEK427OGAa4qVy6leWmd3b8Dnhd5bYAt5I="; 26 + }; 27 + 28 + patches = [ 29 + # Fixed on master: https://github.com/maximtrp/scikit-posthocs/commit/02266a00ce0eb6a089e7efe07816da1aa5152fc9 30 + ./0001-increased-abs-tolerance-for-wilcoxon-test.patch 31 + # Fixed on master: https://github.com/maximtrp/scikit-posthocs/commit/5416ffba3ab01aebab3909400b5a9e847022898e 32 + ./0002-Update-test_posthocs.py.patch 33 + ]; 34 + 35 + nativeBuildInputs = [ 36 + setuptools 37 + wheel 38 + ]; 39 + 40 + propagatedBuildInputs = [ 41 + matplotlib 42 + numpy 43 + pandas 44 + scipy 45 + seaborn 46 + statsmodels 47 + ]; 48 + 49 + preCheck = '' 50 + # tests require to write to home directory 51 + export SEABORN_DATA=${seaborn-data.exercise} 52 + ''; 53 + nativeCheckInputs = [ 54 + pytestCheckHook 55 + ]; 56 + pythonImportsCheck = [ "scikit_posthocs" ]; 57 + 58 + meta = with lib; { 59 + description = "Multiple Pairwise Comparisons (Post Hoc) Tests in Python"; 60 + homepage = "https://github.com/maximtrp/scikit-posthocs"; 61 + changelog = "https://github.com/maximtrp/scikit-posthocs/releases/tag/v${version}"; 62 + license = licenses.mit; 63 + maintainers = with maintainers; [ mbalatsko ]; 64 + }; 65 + }
+2
pkgs/top-level/python-packages.nix
··· 11649 11649 11650 11650 scikit-optimize = callPackage ../development/python-modules/scikit-optimize { }; 11651 11651 11652 + scikit-posthocs = callPackage ../development/python-modules/scikit-posthocs { }; 11653 + 11652 11654 scikit-rf = callPackage ../development/python-modules/scikit-rf { }; 11653 11655 11654 11656 scikits-odes = callPackage ../development/python-modules/scikits-odes { };