Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intermittent divide by zeros from lnZprior #46

Open
outs1der opened this issue Nov 9, 2023 · 0 comments
Open

intermittent divide by zeros from lnZprior #46

outs1der opened this issue Nov 9, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@outs1der
Copy link
Collaborator

outs1der commented Nov 9, 2023

  • beans version: 2.2.1
  • Python version: 3.8.12
  • Operating System: macOS Ventura 13.3.1

Description

intermittent warnings during sampling following call to do_run, when using the lnZprior function (called in turn from the prior for SAX J1808.4-3658, prior_1808):

.../python3.8/site-packages/beansp/beans.py:71: RuntimeWarning: divide by zero encountered in log return np.log(

doesn't seem to affect operations otherwise

What I Did

from beansp import Beans, beans
B=Beans(prior=beans.prior_1808)
B.do_run()
@outs1der outs1der added the bug Something isn't working label Nov 9, 2023
@outs1der outs1der self-assigned this Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant