Skip to content

Commit

Permalink
Kde weights fix (#40)
Browse files Browse the repository at this point in the history
* minor bug fix

* bumping minor version number
  • Loading branch information
htjb authored Aug 30, 2023
1 parent a8a87ae commit a1f623c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Introduction

:margarine: Marginal Bayesian Statistics
:Authors: Harry T.J. Bevins
:Version: 1.1.0
:Version: 1.1.1
:Homepage: https://github.com/htjb/margarine
:Documentation: https://margarine.readthedocs.io/

Expand Down
2 changes: 1 addition & 1 deletion margarine/kde.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def generate_kde(self):
weights_phi /= weights_phi.sum()

self.kde = gaussian_kde(
phi.T, weights=self.sample_weights, bw_method=self.bw_method)
phi.T, weights=weights_phi, bw_method=self.bw_method)

return self.kde

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def readme(short=False):

setup(
name='margarine',
version='1.1.0',
version='1.1.1',
description='margarine: Posterior Sampling and Marginal Bayesian Statistics',
long_description=readme(),
author='Harry T. J. Bevins',
Expand Down

0 comments on commit a1f623c

Please sign in to comment.