Skip to content

Commit

Permalink
Revert plot_priors change
Browse files Browse the repository at this point in the history
  • Loading branch information
devbhakt committed Nov 14, 2024
1 parent d68db8e commit 85b27a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG-unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion src/pint/plot_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 85b27a2

Please sign in to comment.