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:
parent
d904c2ce24
commit
15511c0292
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue