From 85b27a22fab1584099361b74f57828058fa44be8 Mon Sep 17 00:00:00 2001 From: Deven Bhakta Date: Thu, 14 Nov 2024 10:39:34 -0500 Subject: [PATCH] Revert plot_priors change --- CHANGELOG-unreleased.md | 2 +- src/pint/plot_utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG-unreleased.md b/CHANGELOG-unreleased.md index f5892a3f9..09561bfca 100644 --- a/CHANGELOG-unreleased.md +++ b/CHANGELOG-unreleased.md @@ -9,7 +9,7 @@ the released changes. ## Unreleased ### Changed -- Updated the `plot_priors` function in `plot_utils.py` and `plot_chains` function in `event_optimize` so that the subplots are a fixed size to prevent the subplots from being condensed in the case of many fit parameters. +- Updated the `plot_chains` function in `event_optimize` so that the subplots are a fixed size to prevent the subplots from being condensed in the case of many fit parameters. ### Added - Added an option `linearize_model` to speed up the photon phases calculation within `event_optimize` through the designmatrix. - Added AIC and BIC calculation to be written in the post fit parfile from `event_optimize` diff --git a/src/pint/plot_utils.py b/src/pint/plot_utils.py index 917412b71..289655f6d 100644 --- a/src/pint/plot_utils.py +++ b/src/pint/plot_utils.py @@ -279,7 +279,7 @@ def plot_priors( for i in range(len(keys[:-1])): values[i] = values[i][burnin:].flatten() x_range.append(np.linspace(values[i].min(), values[i].max(), num=bins)) - priors.append(getattr(model, keys[i]).prior.logpdf(x_range[i])) + priors.append(getattr(model, keys[i]).prior.pdf(x_range[i])) a, x = np.histogram(values[i], bins=bins, density=True) counts.append(a)