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

[MNT]: Cleanup warnings #25

Open
asreimer opened this issue Mar 9, 2021 · 0 comments
Open

[MNT]: Cleanup warnings #25

asreimer opened this issue Mar 9, 2021 · 0 comments

Comments

@asreimer
Copy link
Contributor

asreimer commented Mar 9, 2021

It is common to see warnings like this when processing a file:

/opt/virtualenvs/dataproc/lib/python3.8/site-packages/tables/leaf.py:544: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray.
  key = numpy.array(key)
/opt/virtualenvs/dataproc/lib/python3.8/site-packages/resolvedvelocities/ResolveVectors.py:883: RuntimeWarning: invalid value encountered in true_divide
  mag_err = np.sqrt(ASA/AA)
/opt/virtualenvs/dataproc/lib/python3.8/site-packages/resolvedvelocities/ResolveVectors.py:907: RuntimeWarning: invalid value encountered in true_divide
  dir_err = np.sqrt(epep*ee*BSB)/(ee*epA**2-epep*eA**2)
/opt/virtualenvs/dataproc/lib/python3.8/site-packages/numpy/core/fromnumeric.py:3419: RuntimeWarning: Mean of empty slice.
  return _methods._mean(a, axis=axis, dtype=dtype,
/opt/virtualenvs/dataproc/lib/python3.8/site-packages/numpy/core/_methods.py:188: RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)
/opt/virtualenvs/dataproc/lib/python3.8/site-packages/resolvedvelocities/plot/summary_plots.py:195: RuntimeWarning: All-NaN slice encountered
  max_vmag_plotted = np.nanmax(vmag)
/opt/virtualenvs/dataproc/lib/python3.8/site-packages/matplotlib/quiver.py:668: RuntimeWarning: Mean of empty slice.
  amean = a[~self.Umask].mean()

Maybe we should clean these up?

Details needed to reproduce:

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