Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

np.int Deprecation Warning #128

Open
ParasKoundal opened this issue Oct 31, 2022 · 0 comments
Open

np.int Deprecation Warning #128

ParasKoundal opened this issue Oct 31, 2022 · 0 comments

Comments

@ParasKoundal
Copy link

I am using probfit ('1.2.0') with scipy('1.7.3') to add up gaussian kde

a  = gaussian_kde(p).pdf
b = gaussian_kde(q).pdf
pdf = probfit.AddPdf(a,b)

where a and b are numpy array and gaussian_kde is from scipy.stats.

On running the above I get the following warning

[I HID IT MYSELF]/python3.7/site-packages/ipykernel_launcher.py:5: DeprecationWarning: `np.int` is a deprecated alias for the builtin `int`. To silence this warning, use `int` by itself. Doing this will not modify any behavior and is safe. When replacing `np.int`, you may wish to use e.g. `np.int64` or `np.int32` to specify the precision. If you wish to review your current use, check the release note link for additional information.
Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
  """

Is it a matter of concern

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant