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

Runtime warning #302

Open
robynstuart opened this issue Mar 7, 2024 · 0 comments
Open

Runtime warning #302

robynstuart opened this issue Mar 7, 2024 · 0 comments

Comments

@robynstuart
Copy link
Collaborator

From running benchmark_empowerment.py:

/Users/robynstuart/anaconda3/envs/starsim/lib/python3.9/site-packages/numpy/lib/arraysetops.py:733: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
  mask |= (ar1 == a)
/Users/robynstuart/Documents/git/fpsim/fpsim/sim.py:391: RuntimeWarning: invalid value encountered in scalar divide
  self.results['mcpr'][ti] = r.on_methods_mcpr / (r.no_methods_mcpr + r.on_methods_mcpr)
/Users/robynstuart/Documents/git/fpsim/fpsim/sim.py:393: RuntimeWarning: invalid value encountered in scalar divide
  self.results['acpr'][ti] = r.on_methods_acpr / (r.no_methods_acpr + r.on_methods_acpr)

The last two must be because the result arrays aren't populated, but the first is mysterious to me - where is it coming from? This also occurs when running test_simple() within test_sim.py.

@robynstuart robynstuart added this to the Switch to time on method milestone Mar 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant