diff --git a/modules/base/pymod/table.py b/modules/base/pymod/table.py index 6eea1f01062c8bc8e744ba15f8f15f2926260102..6cc878fd9a64c55a387b75032591ad388b968ddf 100644 --- a/modules/base/pymod/table.py +++ b/modules/base/pymod/table.py @@ -1156,6 +1156,8 @@ class Table(object): taking rows into account where both of the values are not equal to None. If there are not enough data points to calculate a correlation coefficient, None is returned. + + The function depends on the following module: *scipy.stats.mstats* """ try: import scipy.stats.mstats @@ -1177,7 +1179,7 @@ class Table(object): return None except ImportError: - LogError("Function needs scipy, but I could not import it.") + LogError("Function needs scipy.stats.mstats, but I could not import it.") raise diff --git a/modules/base/tests/test_table.py b/modules/base/tests/test_table.py index ea823869c3e67cec719dce4b21794e005cb6f85e..7091106f5c4a1f3c329b89b1edea1e95c12de128 100644 --- a/modules/base/tests/test_table.py +++ b/modules/base/tests/test_table.py @@ -20,10 +20,10 @@ except ImportError: print "Could not find numpy: ignoring some table class unit tests" try: - import scipy + import scipy.stats.mstats except ImportError: HAS_SCIPY=False - print "Could not find scipy: ignoring some table class unit tests" + print "Could not find scipy.stats.mstats: ignoring some table class unit tests" try: import matplotlib