From 15511c0292e2fd59cbdbf5e66a185de8f5fd5b30 Mon Sep 17 00:00:00 2001 From: Alejandro Moreo Date: Mon, 20 Jul 2026 12:14:31 +0200 Subject: [PATCH] downgrade missing-bayes-deps notice to debug level Not having jax/numpyro/pystan installed is the expected, common case for a plain `pip install quapy`; warning about it every import just nags users who never asked for the bayes extra. Kept at debug level so it's still available to diagnose a broken/partial bayes install. --- quapy/method/_bayesian.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quapy/method/_bayesian.py b/quapy/method/_bayesian.py index d5d582f..04206e6 100644 --- a/quapy/method/_bayesian.py +++ b/quapy/method/_bayesian.py @@ -46,7 +46,10 @@ try: DEPENDENCIES_INSTALLED = True except ImportError as e: - logging.getLogger(__name__).warning(f'Bayesian dependencies failed to import: {e!r}') + # not installing the bayes extra is the common case (jax/numpyro/pystan are optional); this is + # only surfaced at debug level so it doesn't nag plain installs, but is still there to diagnose + # a broken/partial bayes install (e.g. pip install quapy[bayes] with a mismatched dependency). + logging.getLogger(__name__).debug(f'Bayesian dependencies failed to import: {e!r}') jax = None jnp = None jrandom = None