scikit-hep / probfit

Cost function builder. For fitting distributions.
http://probfit.readthedocs.io/
MIT License
50 stars 30 forks source link

np.int Deprecation Warning #128

Open ParasKoundal opened 1 year ago

ParasKoundal commented 1 year ago

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