Closed GaetanLepage closed 7 months ago
Note: the tests don't fail when numba
is not installed.
I think I know the reason, will try to fix it asap (might be next week or so).
We have a "conditional_jit" version of np.histogram, which uses numba's one if numba is installed. Here https://github.com/arviz-devs/arviz/blob/main/arviz/plots/backends/matplotlib/ppcplot.py#L417 we use "auto"
as bins
which is valid in numpy but not supported in numba (looks like by looking at the source code). My guess is that this used to silenly fall back to python mode and use numpy, but now the behaviour is more strict and it fails.
We could probably use our own "get_bins" function within https://github.com/arviz-devs/arviz/blob/main/arviz/stats/density_utils.py#L958 if bins is "auto" before passing the arguments down to numba
Thank you for the explanation ! In the meantime, we will disable those tests on our side as they are not indicating a critical bug of arviz.
Describe the bug The following tests fail on both the latest verion (0.16.1) and master.
arviz/tests/base_tests/test_plots_matplotlib.py::test_plot_ppc_discrete[True-kde]
arviz/tests/base_tests/test_plots_matplotlib.py::test_plot_ppc_discrete_save_animation[kde]
To Reproduce Steps to reproduce the behavior. Ideally a self-contained snippet of code, or link to a notebook or external code. Please include screenshots/images produced with ArviZ here, or the stacktrace including
arviz
code to help.Expected behavior The tests pass.
Additional context Error logs:
Versions and environmens: