Skip to content

Commit

Permalink
Merge pull request #270 from eteq/fix-np15-error
Browse files Browse the repository at this point in the history
Fix for numpy 1.15
  • Loading branch information
dfm committed Aug 14, 2018
2 parents 2b171ae + cbe3c25 commit 8a473d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion emcee/ensemble.py
Expand Up @@ -406,7 +406,7 @@ def compute_log_prob(self, coords):
if len(shape):
axes = np.arange(len(shape))[np.array(shape) == 1] + 1
if len(axes):
blob = np.squeeze(blob, axes)
blob = np.squeeze(blob, tuple(axes))

# Check for log_prob returning NaN.
if np.any(np.isnan(log_prob)):
Expand Down

0 comments on commit 8a473d5

Please sign in to comment.