From beaa42814217c044fe274675cdc41a103eefe2e7 Mon Sep 17 00:00:00 2001 From: Vitaliy Mysak Date: Wed, 31 Jul 2024 10:53:10 -0700 Subject: [PATCH] Make scipy import error more specific --- src/cfeintact/fisher_exact_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cfeintact/fisher_exact_test.py b/src/cfeintact/fisher_exact_test.py index 6c12091..9de3da1 100644 --- a/src/cfeintact/fisher_exact_test.py +++ b/src/cfeintact/fisher_exact_test.py @@ -4,7 +4,7 @@ def default_fisher_exact(*args, **kwargs): raise UserError("Cannot import scipy for fisher_exact test. " - "Please check if you have enough RAM for scipy (python -c 'import scipy').") + "Please check if you have enough RAM for scipy (python -c 'import scipy.stats').") try: @@ -15,5 +15,5 @@ def default_fisher_exact(*args, **kwargs): fisher_exact = default_fisher_exact except KeyboardInterrupt: logger.warning("Cannot import scipy for fisher_exact test. " - "Please check if you have enough RAM for scipy (python -c 'import scipy').") + "Please check if you have enough RAM for scipy (python -c 'import scipy.stats').") fisher_exact = default_fisher_exact