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.
This commit is contained in:
Alejandro Moreo Fernandez 2026-07-20 12:14:31 +02:00
parent d904c2ce24
commit 15511c0292
1 changed files with 4 additions and 1 deletions

View File

@ -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