diff --git a/CHANGELOG.md b/CHANGELOG.md index 4761652ed6..e409f84336 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ objects. (#1218) * Added `log_likelihood` argument to `from_pyro` and a warning if log likelihood cannot be obtained (#1227) * Skip tests on matplotlib animations if ffmpeg is not installed (#1227) +* Fix hpd bug where arguments were being ignored (#1236) ### Deprecation * Using `from_pymc3` without a model context available now raises a diff --git a/arviz/stats/stats.py b/arviz/stats/stats.py index d5b5da2b83..1bcf5c7108 100644 --- a/arviz/stats/stats.py +++ b/arviz/stats/stats.py @@ -338,15 +338,15 @@ def hpd( warnings.warn(("hpd will be deprecated " "Please replace hdi"),) return hdi( ary, - hdi_prob=None, - circular=False, - multimodal=False, - skipna=False, - group="posterior", - var_names=None, - filter_vars=None, - coords=None, - max_modes=10, + hdi_prob, + circular, + multimodal, + skipna, + group, + var_names, + filter_vars, + coords, + max_modes, **kwargs, )