Skip to content

Commit

Permalink
Make scipy import error more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
Donaim committed Jul 31, 2024
1 parent b412732 commit beaa428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cfeintact/fisher_exact_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit beaa428

Please sign in to comment.