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

CatPhan Regression - Runtime Warning #298

Open
crcrewso opened this issue May 24, 2020 · 2 comments
Open

CatPhan Regression - Runtime Warning #298

crcrewso opened this issue May 24, 2020 · 2 comments

Comments

@crcrewso
Copy link
Contributor

crcrewso commented May 24, 2020

Error Message

/home/crcrewso/venv/pylinactest/lib64/python3.8/site-packages/numpy/core/fromnumeric.py:3334: RuntimeWarning: Mean of empty slice.
  return _methods._mean(a, axis=axis, dtype=dtype,
/home/crcrewso/venv/pylinactest/lib64/python3.8/site-packages/numpy/core/_methods.py:161: RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)
/home/crcrewso/venv/pylinactest/lib64/python3.8/site-packages/numpy/core/_methods.py:216: RuntimeWarning: Degrees of freedom <= 0 for slice
  ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
/home/crcrewso/venv/pylinactest/lib64/python3.8/site-packages/numpy/core/_methods.py:185: RuntimeWarning: invalid value encountered in true_divide
  arrmean = um.true_divide(
/home/crcrewso/venv/pylinactest/lib64/python3.8/site-packages/numpy/core/_methods.py:209: RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)

Describe the Bug
Warning from numpy about mean of empty slice

To Reproduce
Steps to reproduce the behavior:

  1. Install master version of pylinac with currently listed dependancies
  2. run CT analysis on Dataset
  3. See error
  4. Analysis continues with what appears to be accurate results

Expected behavior
No warning message

@jrkerns
Copy link
Owner

jrkerns commented Jun 29, 2020

You can filter them (e.g. https://stackoverflow.com/questions/29347987/why-cant-i-suppress-numpy-warnings) or upgrade numpy.

@jrkerns
Copy link
Owner

jrkerns commented Apr 5, 2021

See if Randy's fix removes these for you: #355.

jrkerns added a commit that referenced this issue Nov 13, 2023
…#298)

RAM-3012 Add percent integral uniformity for las vegas

Approved-by: Randy Taylor
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

2 participants